From 3eb26d57f5807d989036c1d3cf4288946f857015 Mon Sep 17 00:00:00 2001 From: Liquan Pei Date: Fri, 3 May 2024 20:47:13 -0700 Subject: [PATCH] [CLN] Remove redundant sysdb initialization in compactor manager (#2133) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - This PR cleans up the redundant sysdb initialization in compactor manager. - New functionality - ... ## Test plan *How are these changes tested?* - [ ] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* --- rust/worker/src/compactor/compaction_manager.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rust/worker/src/compactor/compaction_manager.rs b/rust/worker/src/compactor/compaction_manager.rs index cd2b842c7ab..bea1dcfd4b7 100644 --- a/rust/worker/src/compactor/compaction_manager.rs +++ b/rust/worker/src/compactor/compaction_manager.rs @@ -171,13 +171,6 @@ impl Configurable for CompactionManager { async fn try_from_config( config: &crate::config::CompactionServiceConfig, ) -> Result> { - let sysdb_config = &config.sysdb; - let sysdb = match crate::sysdb::from_config(sysdb_config).await { - Ok(sysdb) => sysdb, - Err(err) => { - return Err(err); - } - }; let log_config = &config.log; let log = match crate::log::from_config(log_config).await { Ok(log) => log,