fix: adds TimeLag::new()
@@ -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,
