Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Aug 23, 2020
1 parent 499f566 commit eed2767
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions services/sender/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ func New(ctx context.Context, params ...Parameter) (*Service, error) {
log = log.Level(parameters.logLevel)
}

// Set up certificates
// clientCertFile := filepath.Join(parameters.certPath, fmt.Sprintf("%s.crt", parameters.name))
// clientKeyFile := filepath.Join(parameters.certPath, fmt.Sprintf("%s.key", parameters.name))
// // CA cert file is optional.
// caCertFile := filepath.Join(parameters.certPath, "ca.crt")
// if _, err := os.Stat(caCertFile); os.IsNotExist(err) {
// log.Debug().Msg("No ca.crt at certificate path")
// caCertFile = ""
// }
credentials, err := composeCredentials(ctx, parameters.serverCert, parameters.serverKey, parameters.caCert)
if err != nil {
return nil, errors.Wrap(err, "failed to compose client credentials")
Expand Down

0 comments on commit eed2767

Please sign in to comment.