about summary refs log tree commit diff
path: root/src/actions/update.rs
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-10-05 19:06:01 +0200
committerMel <einebeere@gmail.com>2021-10-05 19:06:01 +0200
commitfad317349557bee1055d81d7444f99619247815c (patch)
tree50d9e081fcdab32b02daed8d23fa41e8eacd1d83 /src/actions/update.rs
parentad153a44d383962ac8021c02023a92b4c987fd54 (diff)
downloadka-fad317349557bee1055d81d7444f99619247815c.tar.zst
ka-fad317349557bee1055d81d7444f99619247815c.zip
Fs asserts and Create action tests.
Diffstat (limited to 'src/actions/update.rs')
-rw-r--r--src/actions/update.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/actions/update.rs b/src/actions/update.rs
index 421d5b0..a4a64b3 100644
--- a/src/actions/update.rs
+++ b/src/actions/update.rs
@@ -1,5 +1,3 @@
-use std::time::SystemTime;
-
 use anyhow::{Context, Result};
 
 use crate::{
@@ -11,11 +9,7 @@ use crate::{
 
 use super::ActionOptions;
 
-pub fn update(command_options: ActionOptions, fs: &impl Fs) -> Result<()> {
-    let timestamp = SystemTime::now()
-        .duration_since(SystemTime::UNIX_EPOCH)?
-        .as_secs();
-
+pub fn update(command_options: ActionOptions, fs: &impl Fs, timestamp: u64) -> Result<()> {
     let locations = Locations::from(&command_options);
 
     let repository_index_path = locations.get_repository_index_path();