Skip to content

Commit 3d5ad36

Browse files
committed
refactor(signer): comments and logs refactoring
1 parent 3e96545 commit 3d5ad36

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

mithril-signer/src/runtime/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::services::{EpochService, MithrilProtocolInitializerBuilder};
2020
/// This trait is mainly intended for mocking.
2121
#[async_trait]
2222
pub trait Runner: Send + Sync {
23-
///Fetch the configuration parameters of the Mithril network
23+
/// Fetch the configuration parameters of the Mithril network
2424
async fn get_mithril_network_configuration(&self) -> StdResult<MithrilNetworkConfiguration>;
2525

2626
/// Fetch the current epoch settings if any.

mithril-signer/src/runtime/state_machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl StateMachine {
198198
.await?;
199199
} else {
200200
info!(
201-
self.logger, " ⋅ Signer settings and Network Configuration found, but its epoch is behind the known epoch, waiting…";
201+
self.logger, " ⋅ Signer settings found, but its epoch is behind the known epoch, waiting…";
202202
"network_configuration" => ?network_configuration,
203203
"current_singer" => ?signer_registrations.current_signers,
204204
"next_signer" => ?signer_registrations.next_signers,

mithril-signer/src/services/epoch_service.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,6 @@ mod tests {
886886
}
887887
// Fail after `inform_epoch_settings` if `cardano_transactions_signing_config` is not set
888888
{
889-
// Signers
890889
let signers = fake_data::signers(5);
891890
let current_signers = signers[1..3].to_vec();
892891
let next_signers = signers[2..5].to_vec();
@@ -923,7 +922,6 @@ mod tests {
923922
cardano_transactions: Some(CardanoTransactionsSigningConfig::dummy()),
924923
};
925924

926-
// Signers
927925
let signers = fake_data::signers(5);
928926
let current_signers = signers[1..3].to_vec();
929927
let next_signers = signers[2..5].to_vec();

0 commit comments

Comments
 (0)