diff options
Diffstat (limited to 'src/cache.rs')
-rw-r--r-- | src/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.rs b/src/cache.rs index 114ab09..c0e160f 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -22,7 +22,7 @@ impl Cache { Ok(Self::Directory(cachedir)) } pub fn new_db(path: &Path) -> Result<Self> { - let db = Database::open(path)?; + let db = Database::create(path)?; { let txn = db.begin_write()?; txn.open_table(T_DOWNLOAD)?; |