Skip to content

Commit 2676ca7

Browse files
committed
update compact label in worker
1 parent 8d46fc3 commit 2676ca7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/repl/tui/worker.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ fn run(
128128
}
129129
Job::Command(cmd) => {
130130
interrupt.store(false, Ordering::SeqCst);
131-
let _ = ui_tx.send(UiEvent::WorkerBusy("command".into()));
131+
let label = match cmd {
132+
crate::commands::Command::Compact => "compacting",
133+
_ => "command",
134+
};
135+
let _ = ui_tx.send(UiEvent::WorkerBusy(label.into()));
132136
match run_command(repl, cmd, &ui_tx) {
133137
Ok(CommandResult::Exit) => {
134138
// Don't send `WorkerIdle` here — the UI would

0 commit comments

Comments
 (0)