Skip to content

Commit

Permalink
remove dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Dec 17, 2024
1 parent 99df298 commit 012a636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sharechain/lmdb_block_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl BlockCache for LmdbBlockStorage {
// next_resize = false;
}
let store = env.open_single("block_cache", StoreOptions::create()).unwrap();
dbg!(_retry);
// dbg!(_retry);
let mut writer = env.write().expect("writer");
let block_blob = serialize_message(&block).unwrap();
match store.put(&mut writer, hash.as_bytes(), &rkv::Value::Blob(&block_blob)) {
Expand Down Expand Up @@ -98,7 +98,7 @@ impl BlockCache for LmdbBlockStorage {

fn resize_db(env: &Rkv<LmdbEnvironment>) {
let size = env.info().map(|i| i.map_size()).unwrap_or(0);
dbg!(size);
// dbg!(size);
// let new_size = (size as f64 * 1.2f64).ceil() as usize;
let new_size = size * 2;
env.set_map_size(new_size).unwrap();
Expand Down

0 comments on commit 012a636

Please sign in to comment.