-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Component
provider, pubsub
Describe the feature you would like
currently the poller terminates if the filter got evicted:
alloy/crates/rpc-client/src/poller.rs
Line 379 in 808b88d
| if resp.message.contains("filter not found") { |
ideally the poller would auto-reconnect
TODO
- we need a way to do smth like
.reconnect()onalloy/crates/rpc-client/src/poller.rs
Lines 62 to 63 in 808b88d
#[must_use = "this builder does nothing unless you call `spawn` or `into_stream`"] pub struct PollerBuilder<Params, Resp> { - and reset it to
alloy/crates/provider/src/provider/trait.rs
Lines 492 to 493 in 808b88d
let id = self.new_block_filter().await?; Ok(PollerBuilder::new(self.weak_client(), "eth_getFilterChanges", (id,)))
so we need a way to provide a way to re-obtain the id lazily, which is a bit tricky
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Todo