From 9a78305b20aba97617a94ab8e52acd5719593a93 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 23 Aug 2026 22:23:53 +0200 Subject: crates/daemon/api/history: Remove pointless sleep That was forgotten here during testing. --- crates/daemon/src/api/history.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates') 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, ) -> Result, 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(), -- cgit v1.3.1