From f2b067e85e8fdee7d3a349817c4f0506b7759ca3 Mon Sep 17 00:00:00 2001 From: Ludo Galabru Date: Tue, 15 Aug 2023 18:28:10 +0200 Subject: [PATCH] fix: remove rocksdb reconnect --- .../src/core/pipeline/processors/inscription_indexing.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/ordhook-cli/src/core/pipeline/processors/inscription_indexing.rs b/components/ordhook-cli/src/core/pipeline/processors/inscription_indexing.rs index be5daa52..f01cebf0 100644 --- a/components/ordhook-cli/src/core/pipeline/processors/inscription_indexing.rs +++ b/components/ordhook-cli/src/core/pipeline/processors/inscription_indexing.rs @@ -141,10 +141,6 @@ pub fn start_inscription_indexing_processor( ); cache_l2.clear(); - // Clear rocksdb db connection on a regular basis - let _ = blocks_db_rw.flush_wal(true); - blocks_db_rw = open_ordhook_db_conn_rocks_db_loop(true, &config.expected_cache_path(), &ctx); - // Recreate sqlite db connection on a regular basis inscriptions_db_conn_rw = open_readwrite_ordhook_db_conn(&config.expected_cache_path(), &ctx).unwrap();