Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
  • Loading branch information
Connor1996 committed Dec 19, 2023
1 parent d23498c commit 1743ff6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/utils/grpcutil/grpcutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func (s TLSConfig) ToTLSConfig() (*tls.Config, error) {
}

tlsInfo, err := s.ToTLSInfo()
if tlsInfo == nil {
return nil, nil
}
if err != nil {
return nil, errs.ErrEtcdTLSConfig.Wrap(err).GenWithStackByCause()
}
Expand Down

0 comments on commit 1743ff6

Please sign in to comment.