resolve half of the integer_arithmetic lints, couple misc changes

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-03 21:42:47 -04:00 committed by June
parent ac4590952b
commit b5c0c30a5e
34 changed files with 188 additions and 109 deletions

View file

@ -401,18 +401,18 @@ impl KeyValueDatabase {
let sqlite_exists = path.join("conduit.db").exists();
let rocksdb_exists = path.join("IDENTITY").exists();
let mut count = 0;
let mut count: u8 = 0;
if sqlite_exists {
count += 1;
count = count.saturating_add(1);
}
if rocksdb_exists {
count += 1;
count = count.saturating_add(1);
}
if count > 1 {
warn!("Multiple databases at database_path detected");
error!("Multiple databases at database_path detected");
return Ok(());
}