Skip to content

Commit cac3a32

Browse files
committed
fix comments, typos
1 parent bd1a3aa commit cac3a32

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libsigner/src/v0/messages.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ impl StacksMessageCodec for StateMachineUpdateMinerState {
604604
parent_tenure_last_block.consensus_serialize(fd)?;
605605
parent_tenure_last_block_height.consensus_serialize(fd)?;
606606
}
607-
StateMachineUpdateMinerState::NoValidMiner => return Ok(()),
607+
StateMachineUpdateMinerState::NoValidMiner => {}
608608
}
609609
Ok(())
610610
}
@@ -628,7 +628,7 @@ impl StacksMessageCodec for StateMachineUpdateMinerState {
628628
})
629629
}
630630
other => Err(CodecError::DeserializeError(format!(
631-
"Unexpect miner state variant in StateMachineUpdate: {other}"
631+
"Unexpected miner state variant in StateMachineUpdate: {other}"
632632
))),
633633
}
634634
}

stacks-signer/src/chainstate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub enum SignerChainstateError {
4242
/// The signer could not find information about the parent tenure
4343
#[error("No information available for parent tenure '{0}'")]
4444
NoParentTenureInfo(ConsensusHash),
45-
/// The signer could not find information about the parent tenure
45+
/// The local state machine wasn't ready to be queried
4646
#[error("The local state machine is not ready, so no update message can be produced")]
4747
LocalStateMachineNotReady,
4848
}

stacks-signer/src/signerdb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ impl SignerDb {
962962
Ok(())
963963
}
964964

965-
/// Get timestamp (epoch seconds) at which a burn block was received over the event dispatcheer by this signer
965+
/// Get timestamp (epoch seconds) at which a burn block was received over the event dispatcher by this signer
966966
/// if that burn block has been received.
967967
pub fn get_burn_block_receive_time(
968968
&self,
@@ -979,7 +979,7 @@ impl SignerDb {
979979
Ok(Some(receive_time))
980980
}
981981

982-
/// Get timestamp (epoch seconds) at which a burn block was received over the event dispatcheer by this signer
982+
/// Get timestamp (epoch seconds) at which a burn block was received over the event dispatcher by this signer
983983
/// if that burn block has been received.
984984
pub fn get_burn_block_receive_time_ch(
985985
&self,

0 commit comments

Comments
 (0)