fix linter

This commit is contained in:
Dawid Wysokiński 2023-05-03 07:52:45 +02:00
parent e05f599062
commit 58634b3761
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 4 additions and 0 deletions

View File

@ -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))

View File

@ -136,6 +136,7 @@ func newTransportCredentials() (credentials.TransportCredentials, error) {
ClientAuth: tls.RequireAndVerifyClientCert,
Certificates: []tls.Certificate{cert},
ClientCAs: capool,
MinVersion: tls.VersionTLS13,
}), nil
}