diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 22:23:53 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-23 22:23:53 +0200 |
| commit | 9a78305b20aba97617a94ab8e52acd5719593a93 (patch) | |
| tree | 71c9182fb491d7c92006b096214a4bcfebe583a8 /crates/daemon | |
| parent | crates/daemon/aclient/history: Don't panic on negative command duration (diff) | |
| download | atuin-9a78305b20aba97617a94ab8e52acd5719593a93.zip | |
crates/daemon/api/history: Remove pointless sleep
That was forgotten here during testing.
Diffstat (limited to 'crates/daemon')
| -rw-r--r-- | crates/daemon/src/api/history.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/daemon/src/api/history.rs b/crates/daemon/src/api/history.rs index 0b373604..2229e5b1 100644 --- a/crates/daemon/src/api/history.rs +++ b/crates/daemon/src/api/history.rs @@ -135,8 +135,6 @@ impl HistorySvc for HistoryService { &self, request: Request<StartHistoryRequest>, ) -> Result<Response<StartHistoryReply>, Status> { - tokio::time::sleep(Duration::from_secs(5)).await; - let req = request.into_inner(); let timestamp = proto_timestamp_to_time(req.timestamp); @@ -154,9 +152,9 @@ impl HistorySvc for HistoryService { self.handle.emit(DaemonEvent::HistoryStarted(h.clone())); - let id = h.id.clone(); + let id = h.id; tracing::info!(id = id.to_string(), "start history"); - self.running.insert(id.clone(), h); + self.running.insert(id, h); let reply = StartHistoryReply { id: id.to_string(), |
