From dbcfdb38cc78bc97e93d0eb644bc74627620526c Mon Sep 17 00:00:00 2001 From: Oleg Vakarev Date: Sat, 25 May 2024 19:31:50 +0300 Subject: [PATCH] fix: prevent redis shutdown Signed-off-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)