Skip to content

Commit

Permalink
fix: propagate error when trying to store peer info
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Nov 6, 2024
1 parent c90091b commit 1bc949a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/chainhook-cli/src/storage/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn initialize_signers_db(base_dir: &PathBuf, ctx: &Context) -> Result<Connec
)
.map_err(|e| format!("unable to create table: {e}"))?;
conn.execute(
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
[]
).map_err(|e| format!("unable to create index: {e}"))?;
conn.execute(
Expand Down Expand Up @@ -447,7 +447,7 @@ pub fn store_signer_db_messages(
"Storing stacks MockProposal by signer {}",
chunk.pubkey
);
let _ = store_mock_proposal_peer_info(&db_tx, data, Some(message_id));
let _ = store_mock_proposal_peer_info(&db_tx, data, Some(message_id))?;
}
StacksSignerMessage::MockBlock(data) => {
try_info!(ctx, "Storing stacks MockBlock by signer {}", chunk.pubkey);
Expand Down

0 comments on commit 1bc949a

Please sign in to comment.