Merge pull request #7421 from poanetwork/whisper-relay
Problem: sending any Whisper message fails
This commit is contained in:
commit
4ce643ba3f
@ -51,7 +51,7 @@ impl PoolHandle for NetPoolHandle {
|
|||||||
fn relay(&self, message: Message) -> bool {
|
fn relay(&self, message: Message) -> bool {
|
||||||
let mut res = false;
|
let mut res = false;
|
||||||
let mut message = Some(message);
|
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() {
|
if let Some(message) = message.take() {
|
||||||
res = self.handle.post_message(message, ctx);
|
res = self.handle.post_message(message, ctx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user