mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Don't panic if nobody's listening
This commit is contained in:
@@ -214,9 +214,9 @@ fn fail_federation_txn(
|
||||
services.transaction_ids.remove_federation_txn(txn_key);
|
||||
|
||||
// Send the error to any waiters
|
||||
sender
|
||||
.send(Some(Err(err)))
|
||||
.expect("couldn't send error to channel");
|
||||
if let Err(e) = sender.send(Some(Err(err))) {
|
||||
debug_warn!("Failed to send transaction error to receivers: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a TransactionError into an appropriate HTTP error response.
|
||||
|
||||
Reference in New Issue
Block a user