Browse Source

Merge pull request 'fix storage pretending to load stores it does not have a password for' (#301) from dan/cwtch:fixStorage into master

master
Sarah Jamie Lewis 1 week ago
parent
commit
f952fbc680
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      storage/v1/profile_store.go

+ 5
- 2
storage/v1/profile_store.go View File

@@ -97,10 +97,13 @@ func LoadProfileWriterStore(eventManager event.Manager, directory, password stri
ps := &ProfileStoreV1{fs: NewFileStore(directory, profileFilename, key), key: key, directory: directory, profile: nil, eventManager: eventManager, streamStores: map[string]StreamStore{}, writer: true}
copy(ps.salt[:], salt)

ps.initProfileWriterStore()

ps.load()
err = ps.load()
if err != nil {
return nil, err
}

ps.initProfileWriterStore()
return ps, nil
}



Loading…
Cancel
Save