We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb3f97 commit 08cdb4dCopy full SHA for 08cdb4d
tests/test_peer_pool.nim
@@ -25,6 +25,9 @@ proc getKey*(peer: PeerTest): PeerTestID =
25
proc getFuture*(peer: PeerTest): Future[void] =
26
result = peer.future
27
28
+proc isAlive*(peer: PeerTest): bool =
29
+ not(peer.future.finished())
30
+
31
proc `<`*(a, b: PeerTest): bool =
32
result = `<`(a.weight, b.weight)
33
0 commit comments