fixed an issue with session manager interface
This commit is contained in:
@@ -29,7 +29,7 @@ func (m *mockSessionManager) Get(ctx context.Context, key string) any {
|
||||
return m.store[key]
|
||||
}
|
||||
|
||||
func (m *mockSessionManager) Put(ctx context.Context, key string, value any) error {
|
||||
func (m *mockSessionManager) Put(ctx context.Context, key string, value any) {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
if value == nil {
|
||||
@@ -37,7 +37,6 @@ func (m *mockSessionManager) Put(ctx context.Context, key string, value any) err
|
||||
} else {
|
||||
m.store[key] = value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func TestHandleLogic(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user