fix linter
This commit is contained in:
parent
e05f599062
commit
58634b3761
|
@ -116,6 +116,7 @@ func newTransportCredentials() (credentials.TransportCredentials, error) {
|
|||
return credentials.NewTLS(&tls.Config{
|
||||
Certificates: []tls.Certificate{cert},
|
||||
RootCAs: capool,
|
||||
MinVersion: tls.VersionTLS13,
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +129,8 @@ func sayHello(ctx context.Context, client proto.GreeterClient, logger *zap.Logge
|
|||
}
|
||||
|
||||
func sayHelloClientStream(ctx context.Context, client proto.GreeterClient, logger *zap.Logger) {
|
||||
// ctx is used later to close the stream client
|
||||
//nolint:contextcheck
|
||||
streamClient, err := client.SayHelloClientStream(context.Background())
|
||||
if err != nil {
|
||||
logger.Fatal("something went wrong while calling SayHelloClientStream", zap.Error(err))
|
||||
|
|
|
@ -136,6 +136,7 @@ func newTransportCredentials() (credentials.TransportCredentials, error) {
|
|||
ClientAuth: tls.RequireAndVerifyClientCert,
|
||||
Certificates: []tls.Certificate{cert},
|
||||
ClientCAs: capool,
|
||||
MinVersion: tls.VersionTLS13,
|
||||
}), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue