From c8b3b484101fd442f0183d9d2aca4e7fecd5a4da Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 26 May 2024 15:43:39 +0300 Subject: [PATCH] fix: prevent redis shutdown (#3111) Signed-off-by: Oleg Vakarev Co-authored-by: Oleg Vakarev --- internal/cmd/grpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/grpc.go b/internal/cmd/grpc.go index 1f8aaebcbf..8ec17a83d2 100644 --- a/internal/cmd/grpc.go +++ b/internal/cmd/grpc.go @@ -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)