mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 11:43:43 +00:00
Don't hang the overlord when processing incoming events
This commit is contained in:
parent
003cb3b3f8
commit
9105602016
@ -471,9 +471,11 @@ impl Overlord {
|
|||||||
self.post_reply(content, reply_to).await?;
|
self.post_reply(content, reply_to).await?;
|
||||||
}
|
}
|
||||||
"process_incoming_events" => {
|
"process_incoming_events" => {
|
||||||
for (event, url) in GLOBALS.incoming_events.write().await.drain(..) {
|
let _ = tokio::spawn(async move {
|
||||||
crate::process::process_new_event(&event, true, Some(url)).await?;
|
for (event, url) in GLOBALS.incoming_events.write().await.drain(..) {
|
||||||
}
|
let _ = crate::process::process_new_event(&event, true, Some(url)).await;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user