diff --git a/src/persistence/stock.rs b/src/persistence/stock.rs index fb939a56..67bde242 100644 --- a/src/persistence/stock.rs +++ b/src/persistence/stock.rs @@ -366,6 +366,10 @@ where } } +impl Stock { + pub fn in_memory() -> Self { Self::default() } +} + impl Stock { pub fn with(stash_provider: S, state_provider: H, index_provider: P) -> Self { Stock {