Skip to content

Commit cd69b5d

Browse files
authored
.*: fix minor linter issues (#6958)
1 parent 891f8da commit cd69b5d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: interop/client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ func main() {
349349
interop.DoCustomMetadata(ctx, tc)
350350
logger.Infoln("CustomMetadata done")
351351
case "unimplemented_method":
352-
interop.DoUnimplementedMethod(conn, ctx)
352+
interop.DoUnimplementedMethod(ctx, conn)
353353
logger.Infoln("UnimplementedMethod done")
354354
case "unimplemented_service":
355-
interop.DoUnimplementedService(testgrpc.NewUnimplementedServiceClient(conn), ctx)
355+
interop.DoUnimplementedService(ctx, testgrpc.NewUnimplementedServiceClient(conn))
356356
logger.Infoln("UnimplementedService done")
357357
case "pick_first_unary":
358358
interop.DoPickFirstUnary(ctx, tc)

Diff for: interop/test_utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ func DoSpecialStatusMessage(ctx context.Context, tc testgrpc.TestServiceClient,
634634
}
635635

636636
// DoUnimplementedService attempts to call a method from an unimplemented service.
637-
func DoUnimplementedService(tc testgrpc.UnimplementedServiceClient, ctx context.Context) {
637+
func DoUnimplementedService(ctx context.Context, tc testgrpc.UnimplementedServiceClient) {
638638
_, err := tc.UnimplementedCall(ctx, &testpb.Empty{})
639639
if status.Code(err) != codes.Unimplemented {
640640
logger.Fatalf("%v.UnimplementedCall() = _, %v, want _, %v", tc, status.Code(err), codes.Unimplemented)
641641
}
642642
}
643643

644644
// DoUnimplementedMethod attempts to call an unimplemented method.
645-
func DoUnimplementedMethod(cc *grpc.ClientConn, ctx context.Context) {
645+
func DoUnimplementedMethod(ctx context.Context, cc *grpc.ClientConn) {
646646
var req, reply proto.Message
647647
if err := cc.Invoke(ctx, "/grpc.testing.TestService/UnimplementedCall", req, reply); err == nil || status.Code(err) != codes.Unimplemented {
648648
logger.Fatalf("ClientConn.Invoke(_, _, _, _, _) = %v, want error code %s", err, codes.Unimplemented)

Diff for: vet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [[ "$1" = "-install" ]]; then
4141
popd
4242
if [[ -z "${VET_SKIP_PROTO}" ]]; then
4343
if [[ "${GITHUB_ACTIONS}" = "true" ]]; then
44-
PROTOBUF_VERSION=25.2 # a.k.a v4.22.0 in pb.go files.
44+
PROTOBUF_VERSION=25.2 # a.k.a. v4.22.0 in pb.go files.
4545
PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
4646
pushd /home/runner/go
4747
wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}

0 commit comments

Comments
 (0)