diff --git a/pr/4026/docs/src/iroh_dns_server/store/signed_packets.rs.html b/pr/4026/docs/src/iroh_dns_server/store/signed_packets.rs.html index b1b3ebe2ba..f37fd87b69 100644 --- a/pr/4026/docs/src/iroh_dns_server/store/signed_packets.rs.html +++ b/pr/4026/docs/src/iroh_dns_server/store/signed_packets.rs.html @@ -216,7 +216,7 @@ 216 Some(packet) => { 217 let expiry_us = self.options.eviction.as_micros() as u64; 218 let expired = -219 Timestamp::from_micros(Timestamp::now().as_micros() - expiry_us); +219 Timestamp::from_micros(Timestamp::now().as_micros().saturating_sub(expiry_us)); 220 if packet.timestamp() < expired { 221 tables 222 .update_time @@ -435,7 +435,7 @@ 435 // if we can't get the snapshot we exit the loop, main actor dead 436 let snapshot = rx.await.std_context("failed to get snapshot")?; 437 -438 let expired = Timestamp::from_micros(Timestamp::now().as_micros() - expiry_us); +438 let expired = Timestamp::from_micros(Timestamp::now().as_micros().saturating_sub(expiry_us)); 439 trace!("evicting packets older than {}", fmt_time(expired)); 440 // if getting the range fails we exit the loop and shut down 441 // if individual reads fail we log the error and limp on