Default metadata path is metadata.db now

master
Edward Shen 2021-07-15 02:53:00 -04:00
parent d3434e8408
commit 940af6508c
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 1 additions and 1 deletions

2
src/cache/disk.rs vendored
View File

@ -42,7 +42,7 @@ impl DiskCache {
/// notifications when a file has been written.
pub async fn new(disk_max_size: Bytes, disk_path: PathBuf) -> Arc<Self> {
let db_pool = {
let db_url = format!("sqlite:{}/metadata.sqlite", disk_path.to_string_lossy());
let db_url = format!("sqlite:{}/metadata.db", disk_path.to_string_lossy());
let mut options = SqliteConnectOptions::from_str(&db_url)
.unwrap()
.create_if_missing(true);