Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Jul 7, 2024
1 parent 84a677b commit 9ddbf7b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions grpc/codegen/client-no-server-pkgpath.golden
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
4 changes: 2 additions & 2 deletions grpc/codegen/client-no-server.golden
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
4 changes: 2 additions & 2 deletions grpc/codegen/client-server-hosting-multiple-services.golden
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
4 changes: 2 additions & 2 deletions grpc/codegen/client-server-hosting-service-subset.golden
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down
4 changes: 2 additions & 2 deletions grpc/codegen/templates/do_grpc_cli.go.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
func doGRPC(scheme, host string, timeout int, debug bool) (goa.Endpoint, any, error) {
conn, err := grpc.Dial(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
func doGRPC(_, host string, _ int, _ bool) (goa.Endpoint, any, error) {
conn, err := grpc.NewClient(host, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "could not connect to gRPC server at %s: %v\n", host, err)
}
Expand Down

0 comments on commit 9ddbf7b

Please sign in to comment.