Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

azurwastaken
Copy link

@azurwastaken azurwastaken commented Feb 2, 2025

Description

Adding an notification to be able to condition behavior on full sync

@azurwastaken azurwastaken deployed to sui-typescript-aws-kms-test-env February 2, 2025 22:32 — with GitHub Actions Active
@azurwastaken azurwastaken changed the title init Feat: add full sync notif Feb 2, 2025

let highest_checkpoint = match sync_state.highest_known_checkpoint_sequence_number() {
Some(checkpoint) => checkpoint,
None => return,

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) {

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);

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?

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.

2 participants