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?;
|
||||
}
|
||||
"process_incoming_events" => {
|
||||
let _ = tokio::spawn(async move {
|
||||
for (event, url) in GLOBALS.incoming_events.write().await.drain(..) {
|
||||
crate::process::process_new_event(&event, true, Some(url)).await?;
|
||||
let _ = crate::process::process_new_event(&event, true, Some(url)).await;
|
||||
}
|
||||
});
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user