whisper: fix timeout

This commit is contained in:
Jacek Sieka 2019-03-25 13:44:17 -06:00
parent cbe67720ce
commit fcc9dec015
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 1 additions and 1 deletions

View File

@ -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),