From bbdf38018b47328b5faa2cef635c37095045be72 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 12 Jun 2026 01:54:21 +0200 Subject: feat(server): Really make users stateless (with tests) This commit also remove another load of unneeded features. --- crates/turtle/src/command/client/search/engines.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'crates/turtle/src/command/client/search/engines.rs') diff --git a/crates/turtle/src/command/client/search/engines.rs b/crates/turtle/src/command/client/search/engines.rs index d6335a38..a84c4798 100644 --- a/crates/turtle/src/command/client/search/engines.rs +++ b/crates/turtle/src/command/client/search/engines.rs @@ -1,9 +1,9 @@ -use async_trait::async_trait; use crate::atuin_client::{ - database::{Context, Database, OptFilters}, - history::{AUTHOR_FILTER_ALL_USER, History, HistoryId}, + database::{ClientSqlite, Context, OptFilters}, + history::{History, HistoryId}, settings::{FilterMode, SearchMode, Settings}, }; +use async_trait::async_trait; use eyre::Result; use super::cursor::Cursor; @@ -67,10 +67,10 @@ pub(crate) trait SearchEngine: Send + Sync + 'static { async fn full_query( &mut self, state: &SearchState, - db: &mut dyn Database, + db: &mut ClientSqlite, ) -> Result>; - async fn query(&mut self, state: &SearchState, db: &mut dyn Database) -> Result> { + async fn query(&mut self, state: &SearchState, db: &mut ClientSqlite) -> Result> { if state.input.as_str().is_empty() { Ok(db .search( @@ -80,7 +80,6 @@ pub(crate) trait SearchEngine: Send + Sync + 'static { "", OptFilters { limit: Some(200), - authors: vec![AUTHOR_FILTER_ALL_USER.to_string()], ..Default::default() }, ) -- cgit v1.3.1