[Feature] Make PollerStream reconnectable
- Lingua principale
- Rust
- Stelle
- 1.3k
- Fork
- 668
- Merge medio
- 2g 2h
- PR unite (30g)
- 29
Descrizione
### Component
provider, pubsub
### Describe the feature you would like
currently the poller terminates if the filter got evicted:
https://github.com/alloy-rs/alloy/blob/808b88df4d627e98b3a3ea55ab54d96d264a23bb/crates/rpc-client/src/poller.rs#L379-L379
ideally the poller would auto-reconnect
## TODO
* we need a way to do smth like `.reconnect()` on https://github.com/alloy-rs/alloy/blob/808b88df4d627e98b3a3ea55ab54d96d264a23bb/crates/rpc-client/src/poller.rs#L62-L63
* and reset it to https://github.com/alloy-rs/alloy/blob/808b88df4d627e98b3a3ea55ab54d96d264a23bb/crates/provider/src/provider/trait.rs#L492-L493
so we need a way to provide a way to re-obtain the id lazily, which is a bit tricky
### Additional context
_No response_
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.