-
Notifications
You must be signed in to change notification settings - Fork 945
fix: remove dead restart_failed_sync from custody backfill #8553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable
Are you sure you want to change the base?
fix: remove dead restart_failed_sync from custody backfill #8553
Conversation
|
|
| // Check if we need to restart custody backfill sync due to a cgc change. | ||
| if self.restart_if_required() { | ||
| return Ok(ProcessResult::Successful); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reasoning for deleting this?
|
we probably want to keep |
| // inform the backfill sync that a new synced peer has joined us. | ||
| if new_state.is_synced() { | ||
| self.backfill_sync.fully_synced_peer_joined(); | ||
| self.custody_backfill_sync.fully_synced_peer_joined(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we want to remove this, i think we want to actually get restart_failed_sync to work appropriately
bf01ec8 to
a84a1cb
Compare
|
Also squashed tp reduce noise in commits |
|
please read my comment above. We probably want to keep restard_failed_sync and fix its usage instead of deleting it |
Custody backfill no longer uses the restart_failed_sync flag to gate restarts and never reads it, unlike the regular backfill logic. This change removes the unused field and its assignments from CustodyBackFillSync, drops the call from SyncManager, and leaves fully_synced_peer_joined as an explicit no-op for API symmetry