No longer need to ignore downstream send errors
By removing the exit variables, the downstream stages wait for upstream stages to drop their senders before exiting.
This commit is contained in:
parent
d1c317fd5f
commit
9bd63867aa
|
@ -48,7 +48,6 @@ impl BankingStage {
|
|||
match e {
|
||||
Error::RecvTimeoutError(RecvTimeoutError::Disconnected) => break,
|
||||
Error::RecvTimeoutError(RecvTimeoutError::Timeout) => (),
|
||||
Error::SendError => (), // Ignore when downstream stage exits prematurely.
|
||||
_ => error!("{:?}", e),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,6 @@ impl WriteStage {
|
|||
match e {
|
||||
Error::RecvTimeoutError(RecvTimeoutError::Disconnected) => break,
|
||||
Error::RecvTimeoutError(RecvTimeoutError::Timeout) => (),
|
||||
Error::SendError => (), // Ignore when downstream stage exits prematurely.
|
||||
_ => error!("{:?}", e),
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue