alloy-rs / alloy-rs/alloy

[Feature] Make PollerStream reconnectable

Offen
#3,150 8 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @dipanshuhappy Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Rust
Sterne
1.3k
Forks
668
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
29

Beschreibung

### 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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.