Simplify
This commit is contained in:
parent
1461b41a36
commit
7f3ec69cf6
7 changed files with 236 additions and 158 deletions
|
|
@ -24,8 +24,7 @@ pub async fn build_app(config: config::Config) -> axum::Router {
|
|||
});
|
||||
}
|
||||
|
||||
let (writer, ready_rx) = db::spawn_writer(db_path.to_string());
|
||||
ready_rx.await.expect("writer failed to initialize");
|
||||
let writer = db::WriterHandle::new(db_path);
|
||||
|
||||
let num_readers = std::thread::available_parallelism()
|
||||
.map(|n| n.get())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue