todos
This commit is contained in:
parent
6e003ea3e3
commit
0fbbd1b34d
1
TODO.md
1
TODO.md
|
@ -61,6 +61,7 @@
|
||||||
- we can fix this by only `publish`ing the sorted list once a threshold of total soft limits is passed
|
- we can fix this by only `publish`ing the sorted list once a threshold of total soft limits is passed
|
||||||
- [ ] emit stats for successes, retries, failures, with the types of requests, account, chain, rpc
|
- [ ] emit stats for successes, retries, failures, with the types of requests, account, chain, rpc
|
||||||
- [ ] automated soft limit
|
- [ ] automated soft limit
|
||||||
|
- [ ] if we send a transaction to private rpcs and then people query it on public rpcs things, some interfaces might think the transaction is dropped (i saw this happen in a brownie script of mine). how should we handle this?
|
||||||
|
|
||||||
## V2
|
## V2
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,9 @@ impl RedisCellClient {
|
||||||
|
|
||||||
assert_eq!(x.len(), 5);
|
assert_eq!(x.len(), 5);
|
||||||
|
|
||||||
|
// TODO: trace log the result
|
||||||
|
|
||||||
|
// TODO: maybe we should do #4
|
||||||
let retry_after = *x.get(3).unwrap();
|
let retry_after = *x.get(3).unwrap();
|
||||||
|
|
||||||
if retry_after == -1 {
|
if retry_after == -1 {
|
||||||
|
|
|
@ -526,6 +526,7 @@ impl Web3Connection {
|
||||||
// rate limit failed
|
// rate limit failed
|
||||||
// save the smallest retry_after. if nothing succeeds, return an Err with retry_after in it
|
// save the smallest retry_after. if nothing succeeds, return an Err with retry_after in it
|
||||||
// TODO: use tracing better
|
// TODO: use tracing better
|
||||||
|
// TODO: i'm seeing "Exhausted rate limit on moralis: 0ns". How is it getting 0?
|
||||||
warn!("Exhausted rate limit on {:?}: {:?}", self, retry_after);
|
warn!("Exhausted rate limit on {:?}: {:?}", self, retry_after);
|
||||||
|
|
||||||
return Err(retry_after);
|
return Err(retry_after);
|
||||||
|
|
Loading…
Reference in New Issue