-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat: add full sync notif #8
base: main
Are you sure you want to change the base?
Conversation
|
||
let highest_checkpoint = match sync_state.highest_known_checkpoint_sequence_number() { | ||
Some(checkpoint) => checkpoint, | ||
None => return, |
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.
log a warning in case its None, also write comment when this could happen
@@ -772,6 +782,27 @@ impl CheckpointExecutor { | |||
false | |||
} | |||
|
|||
fn check_and_notify_tip_reached(&self, checkpoint: &VerifiedCheckpoint) { |
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.
add rustdoc
let Some(manager) = self.exex_manager.as_ref() else { | ||
return; | ||
}; | ||
let _ = manager.send(ExExNotification::HasReachedTip); |
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.
bubble up error, should we set the bool to true if that failed?
Description
Adding an notification to be able to condition behavior on full sync