Skip to content

Commit

Permalink
Fixed runtime sync test
Browse files Browse the repository at this point in the history
  • Loading branch information
antonijzelinskij committed Jan 19, 2024
1 parent 35dd111 commit 96512cc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ class RuntimeSyncService(
cancelExistingSync(chainId)

syncingChains[chainId] = launch(syncDispatcher) {
runCatching {
val syncResult = sync(chainId, forceFullSync)
syncResult?.let { _syncStatusFlow.emit(it) }
}
val syncResult = runCatching {
sync(chainId, forceFullSync)
}.getOrNull()

syncFinished(chainId)

syncResult?.let { _syncStatusFlow.emit(it) }
}
}

Expand Down

0 comments on commit 96512cc

Please sign in to comment.