Skip to content

Commit 66e2a7c

Browse files
author
Ludo Galabru
committed
fix: borrow issue
1 parent ce61205 commit 66e2a7c

File tree

1 file changed

+2
-1
lines changed
  • components/chainhook-event-observer/src/observer

1 file changed

+2
-1
lines changed

components/chainhook-event-observer/src/observer/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ pub async fn start_observer_commands_handler(
601601
let mut bitcoin_block_store: HashMap<BlockIdentifier, BitcoinBlockData> = HashMap::new();
602602
let cache_size = config
603603
.hord_config
604-
.and_then(|ref c| Some(c.cache_size))
604+
.as_ref()
605+
.and_then(|c| Some(c.cache_size))
605606
.unwrap_or(0);
606607
let traversals_cache = Arc::new(new_traversals_lazy_cache(cache_size));
607608

0 commit comments

Comments
 (0)