service/ServiceDiscovery: error unused in release mode