From c16317d7cf8d53a7c0d6c0a14c886df8a3166115 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 15:46:17 +0100 Subject: [PATCH] providers/proxy: fix closed redis client (cherry-pick #7385) (#7429) providers/proxy: fix closed redis client (#7385) Signed-off-by: Jens Langhammer Co-authored-by: Jens L --- 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