mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-11-22 01:08:44 +08:00
13 lines
301 B
Rust
13 lines
301 B
Rust
use foundationdb::Database;
|
|
|
|
use crate::Store;
|
|
|
|
impl Store {
|
|
pub async fn open(config: &Config) -> crate::Result<Self> {
|
|
Ok(Self {
|
|
guard: unsafe { foundationdb::boot() },
|
|
db: Database::default()?,
|
|
blob: BlobStore::new(config).await?,
|
|
})
|
|
}
|
|
}
|