From d2ca52f54db36f051a2dbfb64c0c873560151bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Mon, 2 Dec 2024 14:31:47 -0300 Subject: [PATCH] chore: add comment to importer-offline --- src/bin/importer_offline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/importer_offline.rs b/src/bin/importer_offline.rs index d7c752b09..34d2abd52 100644 --- a/src/bin/importer_offline.rs +++ b/src/bin/importer_offline.rs @@ -51,8 +51,8 @@ const RPC_FETCHER_CHANNEL_CAPACITY: usize = 10; /// block right away, but the information from that block still needs to be /// found in the cache. /// -/// These constants are organized to guarantee that accounts and slots can -/// still be found in the storage cache. +/// NOTE: The size below will only work if the cache is big enough to hold +/// slots and accounts for this number of blocks. const CACHE_SIZE: usize = 10_000; const MAX_BLOCKS_NOT_SAVED: usize = CACHE_SIZE - 1;