Skip to content

Commit

Permalink
providers/proxy: fix closed redis client (#7385)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu authored Nov 3, 2023
1 parent e4c251a commit 2b74ca1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/outpost/proxyv2/application/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b74ca1

Please sign in to comment.