Use `MonotonicTime` as `Instant` shifted by 10 years forward
[rust-lightning] / lightning / src / routing / scoring.rs
index ee9c3d0c47356ddc53d9f7efc21f368b1ef77743..eca5ee6058b7841398b07d8137cd9842c9ec8e2d 100644 (file)
@@ -325,7 +325,7 @@ impl ReadableArgs<u64> for FixedPenaltyScorer {
 }
 
 #[cfg(not(feature = "no-std"))]
-type ConfiguredTime = std::time::Instant;
+type ConfiguredTime = crate::util::time::MonotonicTime;
 #[cfg(feature = "no-std")]
 use crate::util::time::Eternity;
 #[cfg(feature = "no-std")]