Skip to content

Commit

Permalink
fix(examples): load config error
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP committed Sep 3, 2024
1 parent ff2ca13 commit 266bd02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/main/kotlin/io.zenoh/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ internal fun loadConfig(
val scouting = Scouting(Multicast(!noMulticastScouting))
val configData = ConfigData(connect, listen, mode, scouting)
val jsonConfig = Json.encodeToJsonElement(configData)
Config.fromFile(jsonConfig).getOrThrow()
Config.fromJsonElement(jsonConfig).getOrThrow()
}
}
}

0 comments on commit 266bd02

Please sign in to comment.