Skip to content

Commit

Permalink
Update PekkoDiscoveryNameResolver.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Nov 3, 2024
1 parent 1028b97 commit 6dbbbb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class PekkoDiscoveryNameResolver(
def lookup(listener: Listener): Unit = {
import scala.concurrent.Await
try {
val result = Await.result(discovery.lookup(Lookup(serviceName, portName, protocol), resolveTimeout), resolveTimeout)
val result =
Await.result(discovery.lookup(Lookup(serviceName, portName, protocol), resolveTimeout), resolveTimeout)
listener.onAddresses(addresses(result.addresses), Attributes.EMPTY)
} catch {
case e: Throwable =>
Expand Down

0 comments on commit 6dbbbb4

Please sign in to comment.