diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 224f92e17..74c402ed9 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 224f92e17251464984d6906316c54d2e1108ae43 +Subproject commit 74c402ed9db4652a455c00c8d1713b222e3ef3d5 diff --git a/vendor/nim-stew b/vendor/nim-stew index e18f5a62a..6c97f11c7 160000 --- a/vendor/nim-stew +++ b/vendor/nim-stew @@ -1 +1 @@ -Subproject commit e18f5a62af2ade7a1fd1d39635d4e04d944def08 +Subproject commit 6c97f11c7cb59eadf91b124b92d2ec035f7251fa diff --git a/waku/v2/node/waku_node.nim b/waku/v2/node/waku_node.nim index 5e0d7dce4..df8b3b0a5 100644 --- a/waku/v2/node/waku_node.nim +++ b/waku/v2/node/waku_node.nim @@ -113,13 +113,15 @@ proc getAutonatService*(rng: ref HmacDrbgContext): AutonatService = let autonatService = AutonatService.new( autonatClient = AutonatClient.new(), rng = rng, - scheduleInterval = some(chronos.seconds(120)), + scheduleInterval = Opt.some(chronos.seconds(120)), askNewConnectedPeers = false, numPeersToAsk = 3, maxQueueSize = 3, minConfidence = 0.7) - proc statusAndConfidenceHandler(networkReachability: NetworkReachability, confidence: Option[float]) {.gcsafe, async.} = + proc statusAndConfidenceHandler(networkReachability: NetworkReachability, + confidence: Opt[float]): + Future[void] {.gcsafe, async.} = if confidence.isSome(): info "Peer reachability status", networkReachability=networkReachability, confidence=confidence.get()