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

fix(relay): Retry upon TCP connection error #954

Merged
merged 14 commits into from
Oct 6, 2023

Conversation

Cardosaum
Copy link
Contributor

Solves #842

@Cardosaum Cardosaum self-assigned this Oct 5, 2023
@Cardosaum Cardosaum added the enhancement New feature or request label Oct 5, 2023
@Cardosaum Cardosaum marked this pull request as ready for review October 6, 2023 16:02
("SUCCEEDED", true) => {
return Poll::Ready(Ok(this.pending_proof_id.clone()))
}
("SUCCEEDED", false) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah if this happens its a hard error and bonsai has something very wrong with it haha.

@@ -51,6 +52,7 @@ validator = { version = "0.16", features = ["derive"] }
bincode = "1"
bytemuck = "1.13"
risc0-zkvm-methods = { path = "../../risc0/zkvm/methods", default-features = false }
rstest = "0.18"
Copy link
Contributor

Choose a reason for hiding this comment

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

https://docs.rs/rstest/latest/rstest/ interesting! TIL, @flaub this looks like a interesting library for testing.

Copy link
Contributor Author

@Cardosaum Cardosaum Oct 6, 2023

Choose a reason for hiding this comment

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

You can see it's usage here, and here for example.

Copy link
Contributor

@mothran mothran left a comment

Choose a reason for hiding this comment

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

LGTM

@Cardosaum Cardosaum merged commit 0dd80c4 into main Oct 6, 2023
16 of 17 checks passed
@Cardosaum Cardosaum deleted the cardosaum/bug/relay-tcp-error branch October 6, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants