Skip to content

Commit

Permalink
fix: prevent redis shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Vakarev authored and Oleg Vakarev committed May 25, 2024
1 parent 21e9e7e commit 34fbaad
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 34fbaad

Please sign in to comment.