We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c485b commit 36420e9Copy full SHA for 36420e9
app/src/main/java/to/bitkit/services/LightningService.kt
@@ -59,6 +59,7 @@ import javax.inject.Singleton
59
import kotlin.io.path.Path
60
import kotlin.time.Duration
61
import kotlin.time.Duration.Companion.seconds
62
+import kotlin.toString
63
64
typealias NodeEventHandler = suspend (Event) -> Unit
65
@@ -325,7 +326,7 @@ class LightningService @Inject constructor(
325
326
return lspPeers
327
}
328
- fun hasExternalPeers() = peers?.any { it !in getLspPeers() } == true
329
+ fun hasExternalPeers() = peers?.any { p -> p.toString() !in getLspPeers().map { it.toString() } } == true
330
331
// endregion
332
0 commit comments