mirror of https://github.com/vacp2p/pmtree.git
refactor: remove useless prints
This commit is contained in:
parent
8c4abe6fa1
commit
3095ec2b73
|
@ -77,7 +77,6 @@ impl Database for MySled {
|
|||
let db = sled::open(dbpath).unwrap();
|
||||
|
||||
if !db.was_recovered() {
|
||||
println!("Hello world");
|
||||
fs::remove_dir_all(dbpath).expect("Error removing db");
|
||||
return Err(Error("Trying to load non-existing database!".to_string()));
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ impl Database for MySled {
|
|||
let db = sled::open(dbpath).unwrap();
|
||||
|
||||
if !db.was_recovered() {
|
||||
println!("Hello world");
|
||||
fs::remove_dir_all(dbpath).expect("Error removing db");
|
||||
return Err(Error("Trying to load non-existing database!".to_string()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue