Skip to content

Conversation

@or-shachar
Copy link
Owner

After @gmwiz review on #5

  1. Using errgroup as wait group
  2. Organized contexts
  3. Better errors
  4. Fixed a bug introduced in previous chore: CR fixes #6

Did not group imports - I'm using default IDE formatter

Signed-off-by: or-shachar <[email protected]>
cachers/disk.go Outdated
if err := os.Rename(tf.Name(), dest); err != nil {
os.Remove(tf.Name())
defer func() {
_ = os.Remove(tempFile)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you only want to do this if err != nil, although this would work either way

@or-shachar or-shachar merged commit 93ff8ec into main Nov 25, 2023
@or-shachar or-shachar deleted the review-fixes2 branch November 25, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants