diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 23:55:12 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 23:55:12 +0200 |
| commit | 8db6c69864ade203be1cacdb3107cbc8636c68b0 (patch) | |
| tree | 34e80c4d9ab7b40507789ae62a9e7988682b3351 /crates/daemon/src/api | |
| parent | daemon/api: Remove `add_history` (diff) | |
| download | atuin-8db6c69864ade203be1cacdb3107cbc8636c68b0.zip | |
Diffstat (limited to 'crates/daemon/src/api')
| -rw-r--r-- | crates/daemon/src/api/history.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/daemon/src/api/history.rs b/crates/daemon/src/api/history.rs index afd823b1..078e8c64 100644 --- a/crates/daemon/src/api/history.rs +++ b/crates/daemon/src/api/history.rs @@ -127,7 +127,7 @@ impl HistorySvc for HistoryService { self.handle.emit(DaemonEvent::HistoryStarted(h.clone())); let id = h.id; - tracing::info!(id = id.to_string(), "start history"); + tracing::info!(id = id.to_string(), "start history called"); self.running.insert(id, h); let reply = StartHistoryReply { @@ -147,6 +147,8 @@ impl HistorySvc for HistoryService { let req = request.into_inner(); let id = HistoryId::from(req.id); + tracing::info!(id = id.to_string(), "end history called"); + if let Some((_, mut history)) = self.running.remove(&id) { history.exit = req.exit; history.duration = match proto_duration_to_std(req.duration) { |
