mirror of https://github.com/status-im/nim-eth.git
whisper: fix timeout
This commit is contained in:
parent
cbe67720ce
commit
fcc9dec015
|
@ -690,7 +690,7 @@ p2pProtocol Whisper(version = whisperVersion,
|
||||||
whisperNet = peer.networkState
|
whisperNet = peer.networkState
|
||||||
whisperPeer = peer.state
|
whisperPeer = peer.state
|
||||||
|
|
||||||
let m = await handshake(peer, timeout = 500,
|
let m = await handshake(peer, timeout = chronos.milliseconds(500),
|
||||||
status(whisperVersion,
|
status(whisperVersion,
|
||||||
cast[uint](whisperNet.config.powRequirement),
|
cast[uint](whisperNet.config.powRequirement),
|
||||||
@(whisperNet.config.bloom),
|
@(whisperNet.config.bloom),
|
||||||
|
|
Loading…
Reference in New Issue