Skip to content

Commit

Permalink
refactor(autonomi): remove uploaded metadata
Browse files Browse the repository at this point in the history
The uploaded timestamp caused the archive to change between uploads and
thus requiring the archive to be re-uploaded.
  • Loading branch information
b-zee committed Jan 6, 2025
1 parent 246638f commit c565e32
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion autonomi/src/client/files/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ impl Metadata {
.as_secs();

Self {
uploaded: now,
created: now,
modified: now,
size,
Expand Down
5 changes: 0 additions & 5 deletions autonomi/src/client/files/fs_public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ pub(crate) fn metadata_from_entry(entry: &walkdir::DirEntry) -> Metadata {
entry.path().display()
);
return Metadata {
uploaded: 0,
created: 0,
modified: 0,
size: 0,
Expand Down Expand Up @@ -224,10 +223,6 @@ pub(crate) fn metadata_from_entry(entry: &walkdir::DirEntry) -> Metadata {
let modified = unix_time("modified", fs_metadata.modified());

Metadata {
uploaded: SystemTime::now()
.duration_since(SystemTime::UNIX_EPOCH)
.unwrap_or(Duration::from_secs(0))
.as_secs(),
created,
modified,
size: fs_metadata.len(),
Expand Down

0 comments on commit c565e32

Please sign in to comment.