reconnect sooner
This commit is contained in:
parent
5e33694d47
commit
7ff319e9b0
1
TODO.md
1
TODO.md
@ -192,6 +192,7 @@ These are not yet ordered.
|
||||
- [ ] don't "unwrap" anywhere. give proper errors
|
||||
- [ ] handle log subscriptions
|
||||
- probably as a paid feature
|
||||
- [ ] exponential backoff when reconnecting a connection
|
||||
|
||||
new endpoints for users (not totally sure about the exact paths, but these features are all needed):
|
||||
- [x] GET /u/:api_key
|
||||
|
@ -447,7 +447,7 @@ impl Web3Connection {
|
||||
Err(err) => {
|
||||
if reconnect {
|
||||
// TODO: exponential backoff
|
||||
let retry_in = Duration::from_secs(1);
|
||||
let retry_in = Duration::from_millis(50);
|
||||
warn!(
|
||||
rpc=%self,
|
||||
?err,
|
||||
|
Loading…
Reference in New Issue
Block a user