fixed an issue with session manager interface

This commit is contained in:
2025-12-18 13:30:02 -05:00
parent fd0458cc08
commit 1c9688efd0
3 changed files with 8 additions and 33 deletions

View File

@@ -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) {