Skip to content

Commit

Permalink
close object file
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Oct 2, 2024
1 parent 8a512d6 commit 2e63764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (f *Cache) Store(_ context.Context, id string, content io.Reader) (cache.Ob
if err != nil {
return cache.Object{}, fmt.Errorf("%w: %w", cache.ErrCreatingObject, err)
}
defer objectFile.Close() //nolint:errcheck

// write content to object file and copy to buffer to calculate checksum
// TODO: optimize memory by copying content in blocks
Expand Down

0 comments on commit 2e63764

Please sign in to comment.