Skip to content

Commit d3c5624

Browse files
committed
Fix linter issues
1 parent b179ee3 commit d3c5624

7 files changed

+14
-14
lines changed

grpc/codegen/client-no-server-pkgpath.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/client-no-server.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/client-server-hosting-multiple-services-pkgpath.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/client-server-hosting-multiple-services.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/client-server-hosting-service-subset-pkgpath.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/client-server-hosting-service-subset.golden

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"google.golang.org/grpc/credentials/insecure"
99
)
1010

11-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
12-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
11+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
12+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1313
if err != nil {
1414
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
1515
}

grpc/codegen/templates/do_grpc_cli.go.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
2-
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
1+
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
2+
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
33
if err != nil {
44
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
55
}

0 commit comments

Comments
 (0)