mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-28 21:39:56 +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:
1 parent
c0102aafa7
commit
8f293e18c3
1 file changed
+4
@@ -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