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

Add timeout for getting payload per relay #187

Open
ralexstokes opened this issue Nov 10, 2023 · 0 comments
Open

Add timeout for getting payload per relay #187

ralexstokes opened this issue Nov 10, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ralexstokes
Copy link
Owner

ralexstokes commented Nov 10, 2023

this call should have a reasonable timeout to avoid blocking on slow relays:

let response = relay.open_bid(signed_block).await;

follow the timeout pattern here:

let response = tokio::time::timeout(
Duration::from_secs(FETCH_BEST_BID_TIME_OUT_SECS),
relay.fetch_best_bid(auction_request),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant