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

fix: because it was not saved as intended #3

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Conversation

hirokisan
Copy link
Owner

No description provided.

Comment on lines -69 to +70
if _, err := m.store.Write(bytes); err != nil {
if _, err := m.store.WriteAt(bytes, 0); err != nil {
Copy link
Owner Author

Choose a reason for hiding this comment

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

📝 Overwrite, not append.

io.Writer
io.WriterAt
Copy link
Owner Author

Choose a reason for hiding this comment

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

This does not seem to be a good solution and will be corrected later.

@hirokisan hirokisan marked this pull request as ready for review March 14, 2023 10:59
@hirokisan hirokisan merged commit d97ee29 into main Mar 14, 2023
@hirokisan hirokisan deleted the fix-store-history branch March 14, 2023 10:59
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.

1 participant