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 retry to wallet WS before falling back to HTTP #496

Open
thesimplekid opened this issue Dec 8, 2024 · 0 comments
Open

Add retry to wallet WS before falling back to HTTP #496

thesimplekid opened this issue Dec 8, 2024 · 0 comments
Assignees
Labels

Comments

@thesimplekid
Copy link
Collaborator

Tracking issue so we don't forget about the TODO comment.

WsMessageOrResponse::ErrorResponse(error) => {
tracing::error!("Received error from server: {:?}", error);
if subscription_requests.contains(&error.id) {
// If the server sends an error response to a subscription request, we should
// fallback to HTTP.
// TODO: Add some retry before giving up to HTTP.
return fallback_to_http(

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

No branches or pull requests

2 participants