raboof commented on code in PR #222:
URL: 
https://github.com/apache/incubator-pekko-grpc/pull/222#discussion_r1495750001


##########
runtime/src/main/scala/org/apache/pekko/grpc/internal/PekkoDiscoveryNameResolverProvider.scala:
##########
@@ -34,8 +35,7 @@ class PekkoDiscoveryNameResolverProvider(
 
   override def getDefaultScheme: String = "http"
 
-  override def newNameResolver(targetUri: URI, args: NameResolver.Args): 
PekkoDiscoveryNameResolver = {
-    require(targetUri.getAuthority != null, s"target uri should not have null 
authority, got [$targetUri]")
-    new PekkoDiscoveryNameResolver(discovery, defaultPort, 
targetUri.getAuthority, portName, protocol, resolveTimeout)
-  }
+  override def newNameResolver(targetUri: URI, args: NameResolver.Args): 
PekkoDiscoveryNameResolver =
+    new PekkoDiscoveryNameResolver(discovery, defaultPort, serviceName, 
portName, protocol, resolveTimeout)

Review Comment:
   Is this change related/required for the switch to the new io.grpc version 
and introduction of scala3_sources?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to