fix: adds TimeLag::new() (#568)
This commit is contained in:
parent
bfdf70cbea
commit
4db37cad84
|
@ -37,6 +37,16 @@ pub struct TimeLag<M, const K: u8> {
|
|||
inner: Arc<M>,
|
||||
}
|
||||
|
||||
impl<M, const K: u8> TimeLag<M, K>
|
||||
where
|
||||
M: Middleware,
|
||||
{
|
||||
/// Instantiates TimeLag provider
|
||||
pub fn new(inner: M) -> Self {
|
||||
Self { inner: inner.into() }
|
||||
}
|
||||
}
|
||||
|
||||
impl<M, const K: u8> TimeLag<M, K>
|
||||
where
|
||||
M: Middleware,
|
||||
|
|
Loading…
Reference in New Issue