mirror of
https://github.com/vacp2p/pmtree.git
synced 2025-02-26 05:55:16 +00:00
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();
|
let db = sled::open(dbpath).unwrap();
|
||||||
|
|
||||||
if !db.was_recovered() {
|
if !db.was_recovered() {
|
||||||
println!("Hello world");
|
|
||||||
fs::remove_dir_all(dbpath).expect("Error removing db");
|
fs::remove_dir_all(dbpath).expect("Error removing db");
|
||||||
return Err(Error("Trying to load non-existing database!".to_string()));
|
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();
|
let db = sled::open(dbpath).unwrap();
|
||||||
|
|
||||||
if !db.was_recovered() {
|
if !db.was_recovered() {
|
||||||
println!("Hello world");
|
|
||||||
fs::remove_dir_all(dbpath).expect("Error removing db");
|
fs::remove_dir_all(dbpath).expect("Error removing db");
|
||||||
return Err(Error("Trying to load non-existing database!".to_string()));
|
return Err(Error("Trying to load non-existing database!".to_string()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user