Skip to content

Commit

Permalink
fix: prevent redis shutdown (#3111)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Vakarev <[email protected]>
Co-authored-by: Oleg Vakarev <[email protected]>
  • Loading branch information
vk-rv and Oleg Vakarev authored May 26, 2024
1 parent 21e9e7e commit c8b3b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ func getCache(ctx context.Context, cfg *config.Config) (cache.Cacher, errFunc, e
cacheErr = err
return
}
cacheFunc = func(ctx context.Context) error {
return rdb.Shutdown(ctx).Err()
cacheFunc = func(_ context.Context) error {
return rdb.Close()
}

status := rdb.Ping(ctx)
Expand Down

0 comments on commit c8b3b48

Please sign in to comment.