mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-24 03:19:56 +00:00
babe: remove unused slot_duration variable (#4461)
This commit is contained in:
1 parent
d46eaf79aa
commit
dfe87ec61e
1 file changed
-2
@@ -494,8 +494,6 @@ impl<B, C, E, I, Error, SO> sc_consensus_slots::SimpleSlotWorker<B> for BabeWork
|
|||||||
slot_lenience, slot_lenience, BACKOFF_STEP);
|
slot_lenience, slot_lenience, BACKOFF_STEP);
|
||||||
}
|
}
|
||||||
|
|
||||||
let slot_duration = slot_info.duration << (slot_lenience / BACKOFF_STEP);
|
|
||||||
|
|
||||||
let slot_lenience = Duration::from_secs(slot_duration);
|
let slot_lenience = Duration::from_secs(slot_duration);
|
||||||
Some(slot_lenience + slot_remaining)
|
Some(slot_lenience + slot_remaining)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user