Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use temporary files during sync #5

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

FlorianLoch
Copy link
Member

@FlorianLoch FlorianLoch commented Jun 11, 2024

This will reduce the likelihood of corrupted files that otherwise might occur when stopping the sync midair. On unix-like systems renaming a file should be an atomic operation, so the remaining risk should be negligible.

@FlorianLoch FlorianLoch changed the title feat: use temporary files during sync to reduce chance of corrupted f… feat: use temporary files during sync Jun 11, 2024
storage.go Show resolved Hide resolved
@FlorianLoch FlorianLoch merged commit b2c851b into main Jun 18, 2024
2 checks passed
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.

2 participants