mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: disable cloud search (#5663)
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
This commit is contained in:
parent
42dc6017c6
commit
a7b850e752
@ -1,5 +1,4 @@
|
||||
use flowy_folder::manager::FolderManager;
|
||||
use flowy_search::document::handler::DocumentSearchHandler;
|
||||
use flowy_search::folder::handler::FolderSearchHandler;
|
||||
use flowy_search::folder::indexer::FolderIndexManagerImpl;
|
||||
use flowy_search::services::manager::SearchManager;
|
||||
@ -10,11 +9,11 @@ pub struct SearchDepsResolver();
|
||||
impl SearchDepsResolver {
|
||||
pub async fn resolve(
|
||||
folder_indexer: Arc<FolderIndexManagerImpl>,
|
||||
cloud_service: Arc<dyn SearchCloudService>,
|
||||
folder_manager: Arc<FolderManager>,
|
||||
_cloud_service: Arc<dyn SearchCloudService>,
|
||||
_folder_manager: Arc<FolderManager>,
|
||||
) -> Arc<SearchManager> {
|
||||
let folder_handler = Arc::new(FolderSearchHandler::new(folder_indexer));
|
||||
let document_handler = Arc::new(DocumentSearchHandler::new(cloud_service, folder_manager));
|
||||
Arc::new(SearchManager::new(vec![folder_handler, document_handler]))
|
||||
// let document_handler = Arc::new(DocumentSearchHandler::new(cloud_service, folder_manager));
|
||||
Arc::new(SearchManager::new(vec![folder_handler]))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user