Skip to content

Commit

Permalink
Fix scout example (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP authored Sep 13, 2024
1 parent d85304a commit 33c9cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/main/kotlin/io.zenoh/ZScout.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ZScout : CliktCommand(

println("Scouting...")

val scout = Zenoh.scout(channel = Channel(), whatAmI = setOf(WhatAmI.Peer, WhatAmI.Router))
val scout = Zenoh.scout(channel = Channel(), whatAmI = setOf(WhatAmI.Peer, WhatAmI.Router)).getOrThrow()
runBlocking {
for (hello in scout.receiver) {
println(hello)
Expand Down

0 comments on commit 33c9cba

Please # to comment.