Skip to content

refactor str-404: extract replay policy from AutoReconnect, fix dedup invariants#811

Open
Ozodimgba wants to merge 4 commits into
masterfrom
refactor/reconnect
Open

refactor str-404: extract replay policy from AutoReconnect, fix dedup invariants#811
Ozodimgba wants to merge 4 commits into
masterfrom
refactor/reconnect

Conversation

@Ozodimgba

Copy link
Copy Markdown
Contributor

AutoReconnect conflated reconnection and replay policy, overloaded max_retries==0 as an on/off switch, duplicated backoff across AutoReconnect and TonicGrpcConnector, and DedupState accepted slot_retention=0 which silently disabled dedup.

Breaking: ReconnectConfig gained replay_policy field, GeyserGrpcBuilder reconnect_config is Option, TonicGrpcConnector::new and AutoReconnect::new signatures changed, DedupState::with_slot_retention panics on 0, prune no longer pub so NAPI bindings need update.

@Ozodimgba
Ozodimgba requested a review from WilfredAlmeida July 6, 2026 00:25

@WilfredAlmeida WilfredAlmeida left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI tests are failing

@leafaar

leafaar commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

since you are working on autoreconnect this might be a good PR to see if we can add more docs on the values, based on this issue, please verify: #812

@leafaar leafaar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, good job! please fix CI and see if you could add more docs on the auto reconnect feature as comments in the code, see if it makes sense tho, thanks!

@Ozodimgba

Copy link
Copy Markdown
Contributor Author

yeah, the CI testa re due to me breaking napi, once @WilfredAlmeida updates to my changes i will add the docs. thank you @leafaar

@Ozodimgba
Ozodimgba requested a review from WilfredAlmeida July 11, 2026 19:12
Ozodimgba and others added 2 commits July 12, 2026 03:36
…lient (#818)

* refactor: accomodate reconnection options changes from rust client

Signed-off-by: Wilfred Almeida <wilfred@wilfredalmeida.com>

* refactor: update examples

Signed-off-by: Wilfred Almeida <wilfred@wilfredalmeida.com>

* fix(ci): update crossbeam-epoch to resolve RUSTSEC-2026-0204 and remove stale RUSTSEC-2026-0009 ignore (time crate already patched)

---------

Signed-off-by: Wilfred Almeida <wilfred@wilfredalmeida.com>
Co-authored-by: Ozodimgba <75076112+Ozodimgba@users.noreply.github.com>
@Ozodimgba
Ozodimgba force-pushed the refactor/reconnect branch 2 times, most recently from a52e95b to 6dbfb4f Compare July 12, 2026 11:59
@Ozodimgba
Ozodimgba force-pushed the refactor/reconnect branch from 6dbfb4f to c53f1c6 Compare July 12, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants