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: state db always get last and create instead of update #854

Merged
merged 2 commits into from Jan 9, 2019
Merged

fix: state db always get last and create instead of update #854

merged 2 commits into from Jan 9, 2019

Conversation

sfroment
Copy link
Member

@sfroment sfroment commented Jan 8, 2019

fix #850
Commit 1 always retrieve last inserted row, and always create new row instead of updating, this also allow to have the data of config change for more reproductibility
Commit 2 fix state db to be in the wrong directory like for the berty db we should add a trailing / https://github.com/berty/berty/blob/master/core/manager/account/account.go#L302

Signed-off-by: Sacha Froment <sfroment42@gmail.com>
Like for account.dbPath we should add a trailing /

Signed-off-by: Sacha Froment <sfroment42@gmail.com>
@sfroment sfroment added this to the w19.02 🍊 milestone Jan 8, 2019
Copy link
Member

@aeddi aeddi left a comment

Choose a reason for hiding this comment

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

LGTM

@sfroment sfroment merged commit a1f5961 into berty:master Jan 9, 2019
@sfroment sfroment deleted the dev/sfroment/fix-850 branch January 9, 2019 09:34
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

Fix state db
2 participants