fix storage pretending to load stores it does not have a password for

这个提交包含在:
Dan Ballard 2020-03-18 16:10:03 -07:00
父节点 438f05c4af
当前提交 a11b201f65
共有 1 个文件被更改,包括 6 次插入3 次删除

查看文件

@ -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)
err = ps.load()
if err != nil {
return nil, err
}
ps.initProfileWriterStore()
ps.load()
return ps, nil
}