From 2f5be2fc9c4157c7653f86aed36baf960bd62695 Mon Sep 17 00:00:00 2001 From: ksolana <110843012+ksolana@users.noreply.github.com> Date: Fri, 18 Oct 2024 23:48:55 -0700 Subject: [PATCH] [accounts_db] Make internal constants private, remove a dead one --- accounts-db/src/accounts_db.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index b16d5700157609..7fb83232411a14 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -121,9 +121,8 @@ const SCAN_SLOT_PAR_ITER_THRESHOLD: usize = 4000; const UNREF_ACCOUNTS_BATCH_SIZE: usize = 10_000; -pub const DEFAULT_FILE_SIZE: u64 = 4 * 1024 * 1024; -pub const DEFAULT_NUM_THREADS: u32 = 8; -pub const DEFAULT_NUM_DIRS: u32 = 4; +const DEFAULT_FILE_SIZE: u64 = 4 * 1024 * 1024; +const DEFAULT_NUM_DIRS: u32 = 4; // When calculating hashes, it is helpful to break the pubkeys found into bins based on the pubkey value. // More bins means smaller vectors to sort, copy, etc.