From fcc9dec0152b824ea176e7097041998fc55bbb2b Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 25 Mar 2019 13:44:17 -0600 Subject: [PATCH] whisper: fix timeout --- eth/p2p/rlpx_protocols/whisper_protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/p2p/rlpx_protocols/whisper_protocol.nim b/eth/p2p/rlpx_protocols/whisper_protocol.nim index 6f49656..e2964e4 100644 --- a/eth/p2p/rlpx_protocols/whisper_protocol.nim +++ b/eth/p2p/rlpx_protocols/whisper_protocol.nim @@ -690,7 +690,7 @@ p2pProtocol Whisper(version = whisperVersion, whisperNet = peer.networkState whisperPeer = peer.state - let m = await handshake(peer, timeout = 500, + let m = await handshake(peer, timeout = chronos.milliseconds(500), status(whisperVersion, cast[uint](whisperNet.config.powRequirement), @(whisperNet.config.bloom),