Skip to content

Commit

Permalink
Cleanup and update valence_core version containing new APIErrorType e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
RobinP122 committed Jul 4, 2024
1 parent 524f3fa commit e012358
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tracing = "0.1.37"
tracing-subscriber = "0.3.17"
tracing-futures = "0.2.3"
warp = "0.3.5"
valence_core = "0.1.7"
valence_core = "0.1.8"
2 changes: 0 additions & 2 deletions src/api/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ pub async fn del_data_handler<
return r.into_err_internal(ApiErrorType::CuckooFilterLookupFailed);
}

debug!("delete on cuckoo filter successful");

// Check cache
let mut cache_lock_result = cache.lock().await;
let cache_result = cache_lock_result
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn main() {

info!("Connecting to Redis at {}", cache_addr);
info!("Connecting to MongoDB at {}", db_addr);

let cache_conn = construct_redis_conn(&cache_addr).await;
let db_conn = construct_mongodb_conn(&db_addr).await;

Expand Down
2 changes: 0 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ pub async fn init_cuckoo_filter<T: KvStoreConnection>(
info!("No cuckoo filter found in DB, initializing new one");
let cf = CuckooFilter::new();
save_cuckoo_filter_to_disk(&cf, db).await.unwrap();

info!("New cuckoo filter saved to database");

Ok(cf)
}
}
Expand Down

0 comments on commit e012358

Please sign in to comment.