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
|
- [ ] don't "unwrap" anywhere. give proper errors
|
||||||
- [ ] handle log subscriptions
|
- [ ] handle log subscriptions
|
||||||
- probably as a paid feature
|
- 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):
|
new endpoints for users (not totally sure about the exact paths, but these features are all needed):
|
||||||
- [x] GET /u/:api_key
|
- [x] GET /u/:api_key
|
||||||
|
@ -447,7 +447,7 @@ impl Web3Connection {
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
if reconnect {
|
if reconnect {
|
||||||
// TODO: exponential backoff
|
// TODO: exponential backoff
|
||||||
let retry_in = Duration::from_secs(1);
|
let retry_in = Duration::from_millis(50);
|
||||||
warn!(
|
warn!(
|
||||||
rpc=%self,
|
rpc=%self,
|
||||||
?err,
|
?err,
|
||||||
|
Loading…
Reference in New Issue
Block a user