Correct the return value of block_has_events

This commit is contained in:
Luke Parker 2024-03-09 02:44:04 -05:00
parent 2347bf5fd3
commit 89b237af7e
No known key found for this signature in database

View file

@ -109,7 +109,7 @@ async fn block_has_events(
let has_events = if has_no_events { HasEvents::No } else { HasEvents::Yes };
BlockHasEvents::set(txn, block, &has_events);
Ok(HasEvents::Yes)
Ok(has_events)
}
Some(code) => Ok(code),
}