Skip to content

Commit

Permalink
[CLN] Remove redundant sysdb initialization in compactor manager (#2133)
Browse files Browse the repository at this point in the history
## 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)?*
  • Loading branch information
Ishiihara authored May 4, 2024
1 parent 066a792 commit 3eb26d5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rust/worker/src/compactor/compaction_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,6 @@ impl Configurable<CompactionServiceConfig> for CompactionManager {
async fn try_from_config(
config: &crate::config::CompactionServiceConfig,
) -> Result<Self, Box<dyn ChromaError>> {
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,
Expand Down

0 comments on commit 3eb26d5

Please sign in to comment.