From dd4e9030b4e667d3720be2feda24c08972602274 Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 3 Nov 2023 15:19:21 +0100 Subject: [PATCH] providers/proxy: fix closed redis client (#7385) Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/session.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/outpost/proxyv2/application/session.go b/internal/outpost/proxyv2/application/session.go index ec46d02ff..73755cf54 100644 --- a/internal/outpost/proxyv2/application/session.go +++ b/internal/outpost/proxyv2/application/session.go @@ -131,7 +131,6 @@ func (a *Application) Logout(ctx context.Context, filter func(c Claims) bool) er } if rs, ok := a.sessions.(*redisstore.RedisStore); ok { client := rs.Client() - defer client.Close() keys, err := client.Keys(ctx, fmt.Sprintf("%s*", RedisKeyPrefix)).Result() if err != nil { return err