Skip to content

Commit 8c6ac77

Browse files
committed
fix: Remove nextlog from kyoto example
1 parent e920ac0 commit 8c6ac77

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

bdk-ffi

examples/src/main/kotlin/Kyoto.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ fun main() {
4545
val client = lightClient.client
4646
val node = lightClient.node
4747

48-
val logJob = launchLogCollector(this, client::nextLog, "LOG")
4948
val logWarningJob = launchLogCollector(this, client::nextWarning, "WARNING")
5049
val logInfoJob = launchLogCollector(this, client::nextInfo, "INFO")
5150

@@ -64,7 +63,6 @@ fun main() {
6463
}else{
6564
println("Wallet balance is 0. Try sending funds to ${address.address} and try again.")
6665
}
67-
logJob.cancelAndJoin()
6866
logWarningJob.cancelAndJoin()
6967
logInfoJob.cancelAndJoin()
7068
client.shutdown()
@@ -77,7 +75,6 @@ fun <T> launchLogCollector(scope: CoroutineScope, collector: suspend () -> T, lo
7775
while (true) {
7876
val log = collector()
7977
when (logType) {
80-
"LOG" -> logger.info("$log")
8178
"WARNING" -> logger.warn("$log")
8279
"INFO" -> logger.info("$log")
8380
else -> logger.debug("[$logType]: $log")

0 commit comments

Comments
 (0)