Skip to content

Commit 9b987c5

Browse files
author
Ludo Galabru
committed
fix: more pessimism on retries
1 parent dcb8054 commit 9b987c5

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub fn find_lazy_block_at_block_height(
269269
Ok(Some(res)) => return Some(LazyBlock::new(res)),
270270
_ => {
271271
attempt += 1;
272-
std::thread::sleep(std::time::Duration::from_secs(1));
272+
std::thread::sleep(std::time::Duration::from_secs(2));
273273
if attempt > retry {
274274
return None;
275275
}
@@ -1013,7 +1013,7 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
10131013
}
10141014
}
10151015

1016-
let lazy_block = match find_lazy_block_at_block_height(ordinal_block_number, 3, &blocks_db)
1016+
let lazy_block = match find_lazy_block_at_block_height(ordinal_block_number, 10, &blocks_db)
10171017
{
10181018
Some(block) => block,
10191019
None => {

0 commit comments

Comments
 (0)