Skip to content

Commit 683aa9d

Browse files
rdeiorisJiloc
andauthored
Update stackslib/src/chainstate/nakamoto/mod.rs
Co-authored-by: Francesco <[email protected]>
1 parent 19d0805 commit 683aa9d

File tree

1 file changed

+3
-4
lines changed
  • stackslib/src/chainstate/nakamoto

1 file changed

+3
-4
lines changed

stackslib/src/chainstate/nakamoto/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,10 +2156,9 @@ impl NakamotoChainState {
21562156
Self::record_transaction(&stacks_db_tx, &block_id, tx_receipt);
21572157
}
21582158

2159-
let commit = stacks_db_tx.commit();
2160-
if commit.is_err() {
2161-
error!("Could not index transactions: {}", commit.err().unwrap());
2162-
}
2159+
let _ = stacks_db_tx.commit().inspect_err(|e| {
2160+
error!("Could not index transactions: {}", e);
2161+
});
21632162
}
21642163

21652164
// announce the block, if we're connected to an event dispatcher

0 commit comments

Comments
 (0)