Explorar el Código

consensus: fmt

aggstam hace 3 años
padre
commit
1d027cdb06
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      src/consensus/mod.rs
  2. 1 1
      src/consensus/state.rs
  3. 1 1
      src/consensus/task/keep_alive.rs

+ 1 - 1
src/consensus/mod.rs

@@ -70,7 +70,7 @@ lazy_static! {
     pub static ref REWARD: u64 = 420;
     /// `2 * DELTA` represents slot time
     pub static ref DELTA: u64 = 20;
-    
+
     /// Quarantine duration, in slots
     pub static ref QUARANTINE_DURATION: u64 = 5;
 

+ 1 - 1
src/consensus/state.rs

@@ -16,7 +16,7 @@ use rand::rngs::OsRng;
 
 use super::{
     Block, BlockInfo, BlockProposal, Header, KeepAlive, LeadProof, Metadata, Participant,
-    ProposalChain, EPOCH_LENGTH, DELTA, QUARANTINE_DURATION,
+    ProposalChain, DELTA, EPOCH_LENGTH, QUARANTINE_DURATION,
 };
 
 use crate::{

+ 1 - 1
src/consensus/task/keep_alive.rs

@@ -5,7 +5,7 @@ use rand::Rng;
 use smol::Executor;
 
 use crate::{
-    consensus::{QUARANTINE_DURATION, KeepAlive, ValidatorStatePtr},
+    consensus::{KeepAlive, ValidatorStatePtr, QUARANTINE_DURATION},
     crypto::schnorr::SchnorrSecret,
     net::P2pPtr,
     util::async_util::sleep,