Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling cleanup #557

Merged
merged 13 commits into from
Jul 5, 2018
Merged

Error handling cleanup #557

merged 13 commits into from
Jul 5, 2018

Conversation

garious
Copy link
Contributor

@garious garious commented Jul 5, 2018

Error handling is still clumsy. We should switch to something like
error-chain or Result<T, Box<Error>>, but until then, we can
at least be consistent across modules.

This PR also removed exit variables from all stages that are not listening on a UdpSocket as their only input.

cc: #232

Error handling is still clumsy. We should switch to something like
`error-chain` or `Result<T, Box<Error>>`, but until then, we can
at least be consistent across modules.
@garious garious requested a review from aeyakovenko July 5, 2018 20:42
@garious garious force-pushed the cleanup branch 2 times, most recently from 951bfb8 to 743a96e Compare July 5, 2018 22:52
match e {
Error::RecvTimeoutError(RecvTimeoutError::Disconnected) => break,
Error::RecvTimeoutError(RecvTimeoutError::Timeout) => (),
Error::CrdtError(CrdtError::TooSmall) => (), // TODO: Why are the unit-tests throwing hundreds of these?
Copy link
Member

@aeyakovenko aeyakovenko Jul 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the state transitions there are complicated. you would need to boot, wait for the network to grow to N, then if it drops below MIN throw the error.

@garious garious merged commit 3ed9567 into solana-labs:master Jul 5, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
)

Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.134.0 to 0.135.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yihau added a commit to yihau/solana that referenced this pull request Apr 6, 2024
* remove InetAddr from streamer/src/sendmmsg.rs

* add ref links

* use SocketAddr conversion directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants