summaryrefslogtreecommitdiffstats
path: root/pkg/artifactcache/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/artifactcache/storage.go')
-rw-r--r--pkg/artifactcache/storage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/artifactcache/storage.go b/pkg/artifactcache/storage.go
index 9a2609a..0cadfa6 100644
--- a/pkg/artifactcache/storage.go
+++ b/pkg/artifactcache/storage.go
@@ -31,7 +31,7 @@ func (s *Storage) Exist(id uint64) (bool, error) {
return true, nil
}
-func (s *Storage) Write(id uint64, offset int64, reader io.Reader) error {
+func (s *Storage) Write(id uint64, offset uint64, reader io.Reader) error {
name := s.tempName(id, offset)
if err := os.MkdirAll(filepath.Dir(name), 0o755); err != nil {
return err
@@ -110,7 +110,7 @@ func (s *Storage) tempDir(id uint64) string {
return filepath.Join(s.rootDir, "tmp", fmt.Sprint(id))
}
-func (s *Storage) tempName(id uint64, offset int64) string {
+func (s *Storage) tempName(id uint64, offset uint64) string {
return filepath.Join(s.tempDir(id), fmt.Sprintf("%016x", offset))
}