From 74e8f9c7b017db78db6890981e1e4764120abc58 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Sun, 25 Jun 2023 15:21:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnot=20await?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/embedding_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/embedding_search.py b/service/embedding_search.py index 319200b..aeff29c 100644 --- a/service/embedding_search.py +++ b/service/embedding_search.py @@ -161,7 +161,7 @@ class EmbeddingSearchService: if self.collection_id != self.title_index.collection_id: async with PageIndexHelper(self.dbs, self.title_index.collection_id) as old_page_index: await old_page_index.init_table() - old_page_index.remove_by_page_id(self.page_id) + await old_page_index.remove_by_page_id(self.page_id) self.title_index.collection_id = self.collection_id await self.title_index_helper.update(self.title_index)