Merge pull request #7421 from poanetwork/whisper-relay

Problem: sending any Whisper message fails
This commit is contained in:
Marek Kotewicz 2018-01-02 14:25:37 +01:00 committed by GitHub
commit 4ce643ba3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ impl PoolHandle for NetPoolHandle {
fn relay(&self, message: Message) -> bool {
let mut res = false;
let mut message = Some(message);
self.net.with_proto_context(whisper_net::PROTOCOL_ID, &mut move |ctx| {
self.net.with_proto_context(whisper_net::PROTOCOL_ID, &mut |ctx| {
if let Some(message) = message.take() {
res = self.handle.post_message(message, ctx);
}