-
Notifications
You must be signed in to change notification settings - Fork 87
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
Try to renew the connection upon transient error #304
Conversation
match e { | ||
// Connection closures and websocket errors will be retried | ||
connection::Error::ConnectionClosed => { | ||
// Try to renew the connection in case of websocket failure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Try to renew the connection in case of websocket failure | |
// Try to renew the connection in case of connection failure |
Well clippy is right. You are over-writing the local Generally, I don't see a functional change in this PR. Unless I am mistaken, you just replaced the I am wondering why the current code doesn't work because I am also wondering why we never see the |
Reading |
😬 Yeah, my solution does not really do much. We currently map xmr-btc-swap/swap/src/kraken.rs Lines 87 to 101 in 9ad2160
But we never re-establish a connection upon those transient error, but use the stream as it was before: xmr-btc-swap/swap/src/kraken.rs Lines 22 to 36 in 9ad2160
Wouldn't it make sense to re-connect on the stream if we get a |
That is not true. All of the above code is within the |
Yeah, you're right. The |
@thomaseizinger this is an attempt to fix #303
I don't think this solution would work yet but I am not exactly sure how to rearrange the code to make it work.
I thought I put a Draft PR up :)
Currently
clippy
complains about: