Skip to content

Commit

Permalink
use is_sync_completed in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed May 29, 2024
1 parent 2230201 commit 0a56cb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tutorials/src/bin/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ fn sync_db_demo(
chunk_queue.extend(more_chunks);
}

target_db.commit_session(session);

if session.is_sync_completed() {
target_db.commit_session(session);
}

Ok(())
}

0 comments on commit 0a56cb2

Please sign in to comment.