From ef0028bbc936ac74c37331720d7010836c4898ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 27 Jun 2024 21:30:52 +0200 Subject: [PATCH] fix lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- internal/grpc/services/gateway/appprovider.go | 4 ++-- pkg/sdk/session.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/grpc/services/gateway/appprovider.go b/internal/grpc/services/gateway/appprovider.go index be55590f753..af56ae88ea3 100644 --- a/internal/grpc/services/gateway/appprovider.go +++ b/internal/grpc/services/gateway/appprovider.go @@ -325,12 +325,12 @@ func getGRPCConfig(opaque *typespb.Opaque) (bool, bool) { func getConn(host string, ins, skipverify bool) (*grpc.ClientConn, error) { if ins { - return grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials())) + return grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials())) } // TODO(labkode): if in the future we want client-side certificate validation, // we need to load the client cert here tlsconf := &tls.Config{InsecureSkipVerify: skipverify} creds := credentials.NewTLS(tlsconf) - return grpc.Dial(host, grpc.WithTransportCredentials(creds)) + return grpc.NewClient(host, grpc.WithTransportCredentials(creds)) } diff --git a/pkg/sdk/session.go b/pkg/sdk/session.go index cfd0b5a8a0a..a41c3fa47b2 100644 --- a/pkg/sdk/session.go +++ b/pkg/sdk/session.go @@ -63,12 +63,12 @@ func (session *Session) Initiate(host string, insecure bool) error { func (session *Session) getConnection(host string, ins bool) (*grpc.ClientConn, error) { if ins { - return grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials())) + return grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials())) } tlsconf := &tls.Config{InsecureSkipVerify: false} creds := credentials.NewTLS(tlsconf) - return grpc.Dial(host, grpc.WithTransportCredentials(creds)) + return grpc.NewClient(host, grpc.WithTransportCredentials(creds)) } // GetLoginMethods returns a list of all available login methods supported by the Reva instance.