Skip to content

Commit

Permalink
fix: db state not stored in the right path
Browse files Browse the repository at this point in the history
Like for account.dbPath we should add a trailing /

Signed-off-by: Sacha Froment <sfroment42@gmail.com>
  • Loading branch information
sfroment committed Jan 8, 2019
1 parent 02fcb7b commit 30aaf02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/react-native/gomobile/core/core.go
Expand Up @@ -111,7 +111,7 @@ func initOrRestoreAppState(datastorePath string) error {
LocalGRPC: initiallocalGRPC,
}

appState, err := account.OpenStateDB(datastorePath+"berty.state.db", initialState)
appState, err := account.OpenStateDB(datastorePath+"/berty.state.db", initialState)
if err != nil {
return errors.Wrap(err, "state DB init failed")
}
Expand Down
2 changes: 1 addition & 1 deletion client/react-native/gomobile/core/network.go
Expand Up @@ -102,7 +102,7 @@ func UpdateNetworkConfig(jsonConf string) error {
return errors.Wrap(err, "state DB save failed")
}

// if Create is successfull assign the newState to our global
// if Create is successful assign the newState to our global
appConfig = newState

return nil
Expand Down

0 comments on commit 30aaf02

Please sign in to comment.