fix chronos deprecation warning (#5048)

This commit is contained in:
tersec 2023-06-09 23:43:28 +00:00 committed by GitHub
parent 73fc1d5a2b
commit 54cb06ea06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ proc runBlockPollMonitor(service: BlockServiceRef,
block:
var res = false
for future in pendingTasks:
if not(future.done()): continue
if not(future.completed()): continue
if not(cast[Future[bool]](future).read()): continue
res = true
break