mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(gateway): use try_send for events
This commit is contained in:
parent
ae9d818f4b
commit
621889a6c2
1 changed files with 3 additions and 1 deletions
|
|
@ -227,7 +227,9 @@ pub async fn runner(
|
|||
}
|
||||
|
||||
if runtime_config.exists(RUNTIME_CONFIG_KEY_EVENT_TARGET).await {
|
||||
tx.send((shard.id(), event, raw_event)).await.unwrap();
|
||||
if let Err(error) = tx.try_send((shard.id(), event, raw_event)) {
|
||||
tracing::error!(?error, "error sending shard event");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue