Skip to content

Commit ad95949

Browse files
committed
add clarification comment
1 parent 0a32923 commit ad95949

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libsql-server/src/bottomless_migrate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ pub async fn bottomless_migrate(
5858

5959
let (sender, mut rcv) = tokio::sync::mpsc::channel(1);
6060

61+
// we are not checkpointing anything, be we want to drain the receiver
6162
tokio::spawn(async move {
6263
loop {
6364
match rcv.recv().await {
64-
Some(libsql_wal::checkpointer::CheckpointMessage::Shutdown) => {
65+
Some(libsql_wal::checkpointer::CheckpointMessage::Shutdown) | None => {
6566
break
6667
}
6768
Some(_) => (),
68-
None => break,
6969
}
7070
}
7171
});

0 commit comments

Comments
 (0)