Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Nov 10, 2024
1 parent 566073c commit 2902a57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion database/src/db/conn_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ impl ConnBuilder<PathBuf, false, Unspecified, i32> {
let (mut opts, guard) = default_opts!(self)?;
opts.set_max_open_files(-1);
let db = Arc::new(DB::new(
<DBWithThreadMode<MultiThreaded>>::open_as_secondary(&opts, self.db_path.to_str().unwrap(), secondary_path.to_str().unwrap()).unwrap(),
<DBWithThreadMode<MultiThreaded>>::open_as_secondary(
&opts,
self.db_path.to_str().unwrap(),
secondary_path.to_str().unwrap(),
)
.unwrap(),
guard,
));
Ok(db)
Expand Down

0 comments on commit 2902a57

Please sign in to comment.