reconnect sooner

This commit is contained in:
Bryan Stitt 2022-09-12 14:33:19 +00:00
parent 5e33694d47
commit 7ff319e9b0
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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,