Skip to content

Commit

Permalink
RustFmt
Browse files Browse the repository at this point in the history
  • Loading branch information
HCastano committed Oct 7, 2024
1 parent bc5fafa commit 15f939c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pallets/propagation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ pub mod pallet {
let kind = sp_core::offchain::StorageKind::PERSISTENT;
let from_local = sp_io::offchain::local_storage_get(kind, b"rotate_network_key")
.unwrap_or_else(|| b"http://localhost:3001/rotate_network_key".to_vec());
let url = str::from_utf8(&from_local)
.unwrap_or("http://localhost:3001/rotate_network_key");
let url =
str::from_utf8(&from_local).unwrap_or("http://localhost:3001/rotate_network_key");

log::warn!("propagation::post rotate network key");

Expand Down
4 changes: 2 additions & 2 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ pub mod pallet {
);

let current_signer_length = signers_info.next_signers.len();
let is_last_confirmation = signers_info.confirmations.len() == (current_signer_length - 1);
let is_last_confirmation =
signers_info.confirmations.len() == (current_signer_length - 1);

// TODO (#927): Add another check, such as a signature or a verifying key comparison, to
// ensure that rotation was indeed successful.
Expand All @@ -636,7 +637,6 @@ pub mod pallet {
// TODO: Weight is `Pays::No` but want a more accurate weight for max signers vs current
// signers see https://github.com/entropyxyz/entropy-core/issues/985
Ok(Pays::No.into())

}
}

Expand Down

0 comments on commit 15f939c

Please sign in to comment.