Skip to content

Commit 2faf744

Browse files
committed
fix: remove unnecessary runCatching from sync
1 parent 20cc013 commit 2faf744

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/main/java/to/bitkit/repositories/LightningRepo.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,7 @@ class LightningRepo @Inject constructor(
325325
do {
326326
syncPending.set(false)
327327
_lightningState.update { it.copy(isSyncingWallet = true) }
328-
runCatching {
329-
lightningService.sync()
330-
}.onFailure {
331-
return@executeWhenNodeRunning Result.failure(it)
332-
}
328+
lightningService.sync()
333329
refreshChannelCache()
334330
syncState()
335331
if (syncPending.get()) delay(MS_SYNC_LOOP_DEBOUNCE)

0 commit comments

Comments
 (0)