Browse Source

Minor change

Cesar Rodas 1 year ago
parent
commit
6343d362c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crates/storage/src/rocksdb.rs

+ 1 - 1
crates/storage/src/rocksdb.rs

@@ -45,7 +45,7 @@ fn nanoseconds_with_random() -> u128 {
 
 
     let ts = std::time::SystemTime::now()
     let ts = std::time::SystemTime::now()
         .duration_since(std::time::UNIX_EPOCH)
         .duration_since(std::time::UNIX_EPOCH)
-        .unwrap()
+        .expect("time")
         .as_nanos();
         .as_nanos();
 
 
     ts.checked_add(random_number).unwrap_or(ts)
     ts.checked_add(random_number).unwrap_or(ts)