Use Instant::into_std in futures::time

This commit is contained in:
Héctor Ramón Jiménez 2021-01-04 23:19:15 +01:00
parent 50452e62b4
commit 09ea73bd2a

View File

@ -81,6 +81,6 @@ where
tokio::time::interval_at(start, self.0) tokio::time::interval_at(start, self.0)
}; };
stream.map(|_| std::time::Instant::now()).boxed() stream.map(tokio::time::Instant::into_std).boxed()
} }
} }