mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 05:31:02 +00:00
Exit from av-store loop on fatal error. (#2232)
* Fuse receive stream in Context * Revert "Fuse receive stream in Context" This reverts commit ddd26fa98f0ca1afbc22064e93010e4193a058b2. * Exit on node shutdown from av-store loop * Filter only context error
This commit is contained in:
@@ -507,6 +507,10 @@ where
|
|||||||
match res {
|
match res {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
e.trace();
|
e.trace();
|
||||||
|
|
||||||
|
if let Error::Subsystem(SubsystemError::Context(_)) = e {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(true) => {
|
Ok(true) => {
|
||||||
tracing::info!(target: LOG_TARGET, "received `Conclude` signal, exiting");
|
tracing::info!(target: LOG_TARGET, "received `Conclude` signal, exiting");
|
||||||
|
|||||||
Reference in New Issue
Block a user