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(sync): add backfill functionality #15

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

mempirate
Copy link
Contributor

No description provided.

@mempirate mempirate marked this pull request as ready for review January 10, 2025 10:34
@mempirate mempirate requested a review from merklefruit January 10, 2025 10:39
/// Spawns the [`Syncer`] actor task.
pub(crate) fn spawn(mut self) -> JoinHandle<Result<(), SyncError>> {
tokio::spawn(async move {
// Set initial state
// NOTE: this will fail if no sync state is present in the DB.
Copy link
Contributor

Choose a reason for hiding this comment

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

the table will exist given the DDL query is ran before starting the syncer, so this shouldn't be an issue in theory!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah got it, it will just have everything at 0?

@mempirate mempirate merged commit ea679a0 into jonas/feat/sync-lookahead Jan 10, 2025
1 of 3 checks passed
@mempirate mempirate deleted the jonas/feat/sync-state branch January 10, 2025 11:13
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