take configuration in env vars temporarily

This commit is contained in:
Dustin J. Mitchell 2020-11-28 10:02:17 -05:00
parent 97a8a87c24
commit 1a92613ddc
3 changed files with 25 additions and 6 deletions

View file

@ -23,7 +23,7 @@ const NEXT_OPERATION: u64 = 2;
const NEXT_WORKING_SET_INDEX: u64 = 3;
impl<'t> KVStorage<'t> {
pub fn new(directory: &Path) -> Fallible<KVStorage> {
pub fn new<P: AsRef<Path>>(directory: P) -> Fallible<KVStorage<'t>> {
let mut config = Config::default(directory);
config.bucket("tasks", None);
config.bucket("numbers", None);