Skip to content

Commit

Permalink
removed debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
User65k committed Oct 6, 2021
1 parent b17585d commit 4f6cf53
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ pub fn get_cert_duration_left(x509_cert : &[u8]) -> Result<Duration,()> {
let since_the_epoch = start
.duration_since(UNIX_EPOCH)
.expect("Time went backwards");
println!("{:?}", since_the_epoch);
//Ok(Duration::from_secs(valid_until).saturating_sub(since_the_epoch))
let valid_secs = (valid_until - since_the_epoch.as_secs()).max(0);
let wait_secs = Duration::from_secs(valid_secs as u64);
Expand Down

0 comments on commit 4f6cf53

Please sign in to comment.