use tokio for threadpool mgmt
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
89a158ab0b
commit
9a9c071e82
4 changed files with 155 additions and 91 deletions
|
@ -16,7 +16,7 @@ pub struct Database {
|
|||
impl Database {
|
||||
/// Load an existing database or create a new one.
|
||||
pub async fn open(server: &Arc<Server>) -> Result<Arc<Self>> {
|
||||
let db = Engine::open(server)?;
|
||||
let db = Engine::open(server).await?;
|
||||
Ok(Arc::new(Self {
|
||||
db: db.clone(),
|
||||
maps: maps::open(&db)?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue