Skip to content

Commit

Permalink
[Electric-Coin-Company#1482] Fix the wipe function
Browse files Browse the repository at this point in the history
- Added a code that's stoping and cleaning up the Synchronizer, will test if it helps

[Electric-Coin-Company#1482] Fix the wipe function

- stop and start the synchronizer

[Electric-Coin-Company#1482] Fix the wipe function

- relying on switch of endpoint only
  • Loading branch information
LukasKorba committed Sep 2, 2024
1 parent ff70d89 commit 6896e40
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ public class SDKSynchronizer: Synchronizer {
)

do {
try await switchTo(endpoint: initializer.endpoint)
try await blockProcessor.wipe(context: context)
} catch {
subject.send(completion: .failure(error))
Expand Down

0 comments on commit 6896e40

Please sign in to comment.