commit c8d16e2984185161250cb938d23d684271b022ac
parent b0dc69e8cb46304b45e17053dbf1774bb32c06ad
Author: Antoine A <>
Date: Fri, 4 Apr 2025 12:57:40 +0200
common: recover faster from injected failure
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/btc-wire/src/loops/worker.rs b/btc-wire/src/loops/worker.rs
@@ -135,7 +135,7 @@ pub fn worker(mut rpc: AutoRpcWallet, mut db: AutoReconnectDb, mut state: WireSt
skip_notification = !matches!(
e,
LoopError::Rpc(rpc::Error::RPC { .. } | rpc::Error::Bitcoin(_))
- | LoopError::Concurrency
+ | LoopError::Concurrency | LoopError::Injected(_)
);
} else {
skip_notification = false;
diff --git a/eth-wire/src/loops/worker.rs b/eth-wire/src/loops/worker.rs
@@ -125,7 +125,9 @@ pub fn worker(mut rpc: AutoRpcWallet, mut db: AutoReconnectDb, mut state: WireSt
// approach is to wait for the next loop when an RPC error is caught to prevent endless logged errors.
skip_notification = !matches!(
e,
- LoopError::Rpc(rpc::Error::RPC { .. }) | LoopError::Concurrency
+ LoopError::Rpc(rpc::Error::RPC { .. })
+ | LoopError::Concurrency
+ | LoopError::Injected(_)
);
} else {
skip_notification = false;