fix chronos deprecation warning (#5048)
This commit is contained in:
parent
73fc1d5a2b
commit
54cb06ea06
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue