Skip to content

Commit

Permalink
Uncommented
Browse files Browse the repository at this point in the history
  • Loading branch information
sommye-ctr committed Dec 17, 2024
1 parent f4be312 commit 7acac42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mermoria.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ func (m *Memoria) WriteStream(key string, r io.Reader, sync bool) error {
return cleanUp(f, fmt.Errorf("Cannot close compression error %s", err))
}

// if sync {
// if err := f.Sync(); err != nil {
// cleanUp(f, fmt.Errorf("Cannot Sync: %s", err))
// }
// }
if sync {
if err := f.Sync(); err != nil {
cleanUp(f, fmt.Errorf("Cannot Sync: %s", err))
}
}
if err := f.Close(); err != nil {
return fmt.Errorf("Cannot close file: %s", err)
}
Expand Down

0 comments on commit 7acac42

Please sign in to comment.