From cf790b61429706c5511570bec011b7a68effc06a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 09:21:42 +0100 Subject: [PATCH] index: take_search's doc comment back on take_search Co-Authored-By: Claude Opus 5.5 --- crates/huginn-daemon/src/index/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/huginn-daemon/src/index/mod.rs b/crates/huginn-daemon/src/index/mod.rs index db0e961..0c7c19d 100644 --- a/crates/huginn-daemon/src/index/mod.rs +++ b/crates/huginn-daemon/src/index/mod.rs @@ -813,11 +813,6 @@ fn serve_search(projector: &mut Projector, sh lock(shared).found.push((ticket, found)); } -/// The search at the front of the queue, if it may be served now. Never while -/// a document sits in the inbox, and never while anything ahead of it is -/// owed (documents to write, a reconciliation to make) unless the index -/// cannot be asked at all, in which case the search is taken to be refused: -/// waiting would not change the answer. /// Answers the oldest queued source search, whatever state the mind's /// projection is in: it asks the embedder and the source collection and nothing /// of the projector's reconciliation. @@ -833,6 +828,11 @@ fn serve_source_search(projector: &mu lock(shared).sources_found.push((ticket, found)); } +/// The search at the front of the queue, if it may be served now. Never while +/// a document sits in the inbox, and never while anything ahead of it is +/// owed (documents to write, a reconciliation to make) unless the index +/// cannot be asked at all, in which case the search is taken to be refused: +/// waiting would not change the answer. fn take_search(projector: &Projector, guard: &mut Shared) -> Option { if !guard.inbox.is_empty() { return None;