Skip to content

Commit

Permalink
fix: restore stable values
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 15, 2023
1 parent a6b4a5f commit fb5c591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/chainhook-sdk/src/hord/db/mod.rs
Expand Up @@ -859,7 +859,7 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
}

if !traversals_cache.is_empty() {
if num_writes % 16 == 0 {
if num_writes % 24 == 0 {
ctx.try_log(|logger| {
slog::info!(
logger,
Expand All @@ -871,7 +871,7 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
}
}

if num_writes % 512 == 0 {
if num_writes % 128 == 0 {
ctx.try_log(|logger| {
slog::info!(logger, "Flushing DB to disk ({num_writes} inserts)");
});
Expand Down

0 comments on commit fb5c591

Please sign in to comment.