diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-12 16:44:20 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-12 16:44:20 +0100 |
| commit | 5664e5df0e2295697363dacd23614143b9d7cadb (patch) | |
| tree | 4eba27957aadc1ec9389f16f0078e506ed2b7edc /cache/src/backends/mod.rs | |
| parent | 3661af07620caad1bfa46fa6902054797433fc0f (diff) | |
| download | jellything-5664e5df0e2295697363dacd23614143b9d7cadb.tar jellything-5664e5df0e2295697363dacd23614143b9d7cadb.tar.bz2 jellything-5664e5df0e2295697363dacd23614143b9d7cadb.tar.zst | |
make jellytool work again; dummy cache driver
Diffstat (limited to 'cache/src/backends/mod.rs')
| -rw-r--r-- | cache/src/backends/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cache/src/backends/mod.rs b/cache/src/backends/mod.rs index 5872255..506eace 100644 --- a/cache/src/backends/mod.rs +++ b/cache/src/backends/mod.rs @@ -3,12 +3,13 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ +pub mod dummy; pub mod filesystem; pub mod rocksdb; use crate::{ CONF, - backends::{filesystem::Filesystem, rocksdb::Rocksdb}, + backends::{dummy::Dummy, filesystem::Filesystem, rocksdb::Rocksdb}, }; use anyhow::{Result, bail}; @@ -21,6 +22,7 @@ pub fn init_backend() -> Result<Box<dyn CacheStorage>> { Ok(match CONF.driver.as_str() { "filesystem" => Box::new(Filesystem::new(&CONF)), "rocksdb" => Box::new(Rocksdb::new(&CONF)?), + "dummy" => Box::new(Dummy), _ => bail!("unknown driver"), }) } |