Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(redis): redis cliente to own package #156

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/common/clients/redis_client.go → pkg/redis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"io/ioutil"
"os"
"time"

"github.com/redis/go-redis/v9"
Expand Down Expand Up @@ -54,7 +54,7 @@ func NewRedisClient(config RedisConfiguration, logger logging.Logger) RedisClien
func newRedisClusterClient(config RedisConfiguration, logger logging.Logger) RedisClient {
// CA and Cert configuration for TLS connection
certPool := x509.NewCertPool()
caCert, err := ioutil.ReadFile(config.CACert)
caCert, err := os.ReadFile(config.CACert)
if err != nil {
logger.Fatalf("Error to read CA Cert file from: %s. Err: %v", config.CACert, err)
}
Expand Down
File renamed without changes.