mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
use tokio for threadpool mgmt
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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)?,
|
||||
|
||||
Reference in New Issue
Block a user