fix: borrow issue

This commit is contained in:
Ludo Galabru
2023-06-05 11:33:59 -04:00
parent ce61205b96
commit 66e2a7c785

View File

@@ -601,7 +601,8 @@ pub async fn start_observer_commands_handler(
let mut bitcoin_block_store: HashMap<BlockIdentifier, BitcoinBlockData> = HashMap::new();
let cache_size = config
.hord_config
.and_then(|ref c| Some(c.cache_size))
.as_ref()
.and_then(|c| Some(c.cache_size))
.unwrap_or(0);
let traversals_cache = Arc::new(new_traversals_lazy_cache(cache_size));