Skip to content

Commit

Permalink
Add a default panic message if the Redis tls config is invalid in sou…
Browse files Browse the repository at this point in the history
…rce adapter
  • Loading branch information
tdeverdiere committed Oct 21, 2024
1 parent cdfd461 commit 3e4a61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/source/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (a *Adapter) newPool(address string) *redis.Pool {
roots := x509.NewCertPool()
ok := roots.AppendCertsFromPEM([]byte(a.config.TLSCertificate))
if !ok {
panic(err)
panic("cannot add tls certificate to cert pool")
}
c, err = redis.Dial("tcp", opt.Addr,
redis.DialUsername(opt.Username),
Expand Down

0 comments on commit 3e4a61a

Please sign in to comment.