remove setsession on userstore #204
@ -18,7 +18,6 @@ type UserDataStore struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// ReadEntry retrieves an entry to the userdata store.
 | 
					// ReadEntry retrieves an entry to the userdata store.
 | 
				
			||||||
func (store *UserDataStore) ReadEntry(ctx context.Context, sessionId string, typ DataTyp) ([]byte, error) {
 | 
					func (store *UserDataStore) ReadEntry(ctx context.Context, sessionId string, typ DataTyp) ([]byte, error) {
 | 
				
			||||||
	store.SetSession(sessionId)
 | 
					 | 
				
			||||||
	store.SetPrefix(db.DATATYPE_USERDATA)
 | 
						store.SetPrefix(db.DATATYPE_USERDATA)
 | 
				
			||||||
	k := PackKey(typ, []byte(sessionId))
 | 
						k := PackKey(typ, []byte(sessionId))
 | 
				
			||||||
	return store.Get(ctx, k)
 | 
						return store.Get(ctx, k)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user