Skip to content

Commit

Permalink
fix(minio): add ETag
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Oct 5, 2024
1 parent 366421c commit c92bd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/minio.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ func (s *StorageMinio) GetObject(bucket Bucket, fpath string) (utils.ReaderAtClo
}

objInfo.LastModified = info.LastModified
objInfo.ETag = info.ETag
objInfo.Metadata = info.Metadata
objInfo.UserMetadata = info.UserMetadata
objInfo.Size = info.Size

obj, err := s.Client.GetObject(context.Background(), bucket.Name, fpath, minio.GetObjectOptions{})
if err != nil {
Expand All @@ -180,8 +182,6 @@ func (s *StorageMinio) GetObject(bucket Bucket, fpath string) (utils.ReaderAtClo
}
}

objInfo.Size = info.Size

return obj, objInfo, nil
}

Expand Down

0 comments on commit c92bd8e

Please sign in to comment.