alloy-rs / alloy-rs/alloy

[Feature] Make PollerStream reconnectable

オープン
#3,150 コメント 8 件 リアクション 0 件 担当者 1 名 @dipanshuhappy が担当を希望しています GitHub で見る
enhancement
主要言語
Rust
スター
1.3k
フォーク
668
平均マージ
2日 1時間
マージ済み PR(30日)
29

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。