Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Apr 15, 2021
1 parent 50e3f9f commit 37cdf09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vitup/src/config/env.rs
Expand Up @@ -30,11 +30,10 @@ pub struct VitStartParameters {

impl VitStartParameters {
pub fn calculate_vote_duration(&self) -> Duration {
let duration_as_secs =
(self.vote_tally - self.vote_start) *
self.slot_duration as u64 *
(self.slots_per_epoch-1 ) as u64;

let duration_as_secs = (self.vote_tally - self.vote_start)
* self.slot_duration as u64
* (self.slots_per_epoch - 1) as u64;

Duration::from_secs(duration_as_secs)
}
}
Expand Down

0 comments on commit 37cdf09

Please sign in to comment.