diff options
Diffstat (limited to 'src/modules/cache.rs')
-rw-r--r-- | src/modules/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/cache.rs b/src/modules/cache.rs index b07bbbb..68f011f 100644 --- a/src/modules/cache.rs +++ b/src/modules/cache.rs @@ -16,7 +16,7 @@ use bytes::Bytes; use http::Response; use http_body_util::{BodyExt, Full}; use serde::Deserialize; -use serde_yaml::Value; +use serde_yml::Value; use sha2::{Digest, Sha256}; use std::{collections::HashMap, future::Future, pin::Pin, sync::Arc}; use tokio::sync::RwLock; @@ -38,7 +38,7 @@ impl NodeKind for CacheKind { "cache" } fn instanciate(&self, config: Value) -> Result<Arc<dyn Node>> { - let config = serde_yaml::from_value::<CacheConfig>(config)?; + let config = serde_yml::from_value::<CacheConfig>(config)?; Ok(Arc::new(Cache { config, entries: HashMap::new().into(), |