From d7214f4f291efe2d4d22370fb766fb60db416663 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 17 Dec 2024 13:57:06 -0800 Subject: [PATCH] server: move notmuch refresh out of tantivy cfg block for refresh --- server/src/graphql.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/graphql.rs b/server/src/graphql.rs index 0e4bd60..92f4771 100644 --- a/server/src/graphql.rs +++ b/server/src/graphql.rs @@ -583,12 +583,12 @@ impl Mutation { #[instrument(skip_all)] async fn refresh<'ctx>(&self, ctx: &Context<'ctx>) -> Result { let nm = ctx.data_unchecked::(); + info!("{}", String::from_utf8_lossy(&nm.new()?)); #[cfg(feature = "tantivy")] { let tantivy = ctx.data_unchecked::(); let pool = ctx.data_unchecked::(); // TODO: parallelize - info!("{}", String::from_utf8_lossy(&nm.new()?)); tantivy.refresh(pool).await?; } Ok(true)