Skip to content

Commit

Permalink
Droping writer while pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Nov 19, 2024
1 parent 4bb1dd7 commit 16a7861
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hyperqueue/src/server/event/journal/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ async fn streaming_process(
},
Some(EventStreamMessage::PruneJournal { live_jobs, live_workers, callback }) => {
writer.flush()?;
drop(writer);
let mut tmp_path: OsString = journal_path.into();
tmp_path.push(".tmp");
let tmp_path: PathBuf = tmp_path.into();
Expand Down

0 comments on commit 16a7861

Please sign in to comment.