remove setsession on userstore #204

Closed
carlos wants to merge 3 commits from double-session-id into master
Showing only changes of commit b072c1314b - Show all commits

View File

@ -18,6 +18,7 @@ type UserDataStore struct {
// ReadEntry retrieves an entry to the userdata store.
func (store *UserDataStore) ReadEntry(ctx context.Context, sessionId string, typ DataTyp) ([]byte, error) {
store.SetSession(sessionId)
store.SetPrefix(db.DATATYPE_USERDATA)
k := PackKey(typ, []byte(sessionId))
return store.Get(ctx, k)