mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Update kafka.go
Co-authored-by: Urban Ishimwe <urbainishimwe@gmail.com>
This commit is contained in:
co-authored by
Urban Ishimwe
parent
715ce88a63
commit
3fcdb6f1bc
@@ -61,7 +61,7 @@ func NewTLSConfig(clientCertFile, clientKeyFile, caCertFile string) (*tls.Config
|
||||
tlsConfig := tls.Config{}
|
||||
|
||||
if clientCertFile != "" && clientKeyFile == "" {
|
||||
return &tlsConfig, ErrorTLSMissingKey
|
||||
return &tlsConfig, errors.New(mMissing key of client certificate in kafka")
|
||||
}
|
||||
if clientCertFile == "" && clientKeyFile != "" {
|
||||
return &tlsConfig, errors.New("missing TLS client certificate in kafka")
|
||||
|
||||
Reference in New Issue
Block a user