Skip to content

[Feature] configure error code for dropped filters in PollerStream #2826

@siosw

Description

@siosw

Component

rpc

Describe the feature you would like

when using PollerStream with rpc providers, filters often get dropped at some point. this should cause the poller to be stopped but the current logic for this is not very robust.
tenderly for example just returns an error code and no message, this makes it hard to implement logic for resetting the filter.

it would be nice to allow consumers of PollerStream to optionally provide the response codes that should cause the poller to stop, if received.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions