Final2, I swear, when dealing with Arc/rc always use references.

This commit is contained in:
Jordan Petridis
2017-10-22 04:51:34 +03:00
parent cbe50c9163
commit 6ffacaa6d8
9 changed files with 49 additions and 54 deletions
+2 -2
View File
@@ -51,13 +51,13 @@ fn run() -> Result<()> {
if args.up {
let db = hammond_data::establish_connection();
let db = Arc::new(Mutex::new(db));
index_feed::index_loop(db.clone(), false)?;
index_feed::index_loop(&db, false)?;
}
if args.dl >= 0 {
let db = hammond_data::establish_connection();
let db = Arc::new(Mutex::new(db));
downloader::latest_dl(db, args.dl as u32).unwrap();
downloader::latest_dl(&db, args.dl as u32).unwrap();
}
if args.latest {