alloy-rs / alloy-rs/alloy

[Feature] Make PollerStream reconnectable

Abierto
#3,150 8 comentarios 0 reacciones 1 asignado Reclamado por @dipanshuhappy Ver en GitHub
enhancement
Lenguaje dominante
Rust
Estrellas
1.3k
Forks
668
Merge medio
2 d 1 h
PR fusionados (30 d)
29

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.