add a slot-duration getter to babe config (#7793)

This commit is contained in:
Robert Habermeier
2020-12-28 05:46:47 -05:00
committed by GitHub
parent de5fc56f6c
commit 6cd8a45292
@@ -342,6 +342,11 @@ impl Config {
}
}
}
/// Get the inner slot duration, in milliseconds.
pub fn slot_duration(&self) -> u64 {
self.0.slot_duration()
}
}
impl std::ops::Deref for Config {