Skip to content

Commit

Permalink
No longer need to ignore downstream send errors
Browse files Browse the repository at this point in the history
By removing the exit variables, the downstream stages wait for
upstream stages to drop their senders before exiting.
  • Loading branch information
garious committed Jul 5, 2018
1 parent f090f26 commit 2c71b3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/banking_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
Expand Down
1 change: 0 additions & 1 deletion src/write_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
};
Expand Down

0 comments on commit 2c71b3a

Please sign in to comment.