sync only via prysm 2

This commit is contained in:
Agnish Ghosh 2024-10-17 18:54:17 +05:30
parent b2bb6ac863
commit a07ef5d654
1 changed files with 2 additions and 0 deletions

View File

@ -712,6 +712,8 @@ proc syncWorker[A, B](man: SyncManager[A, B], index: int) {.async: (raises: [Can
await man.syncStep(index, peer)
man.pool.release(peer)
peer = nil
man.pool.release(peer)
peer = nil
finally:
if not(isNil(peer)):
man.pool.release(peer)