Skip to content

Commit

Permalink
chore(redis): redis cliente to own package (#156)
Browse files Browse the repository at this point in the history
* chore(redis): move redis client to own package
* ioutil is deprecated
  • Loading branch information
tallnato authored Nov 28, 2023
1 parent a72d498 commit 45e4577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.

0 comments on commit 45e4577

Please sign in to comment.