de-global services

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-07-27 09:08:51 +00:00
1 parent 7e50db4193
commit 2f85a5c1ac
36 files changed
+327 -336

No files matched your search

+3 -3
View File
@@ -11,12 +11,12 @@ pub struct Database {
impl Database {
/// Load an existing database or create a new one.
pub async fn open(server: &Arc<Server>) -> Result<Self> {
pub async fn open(server: &Arc<Server>) -> Result<Arc<Self>> {
let db = Engine::open(server)?;
Ok(Self {
Ok(Arc::new(Self {
db: db.clone(),
map: maps::open(&db)?,
})
}))
}
#[inline]