Skip to content

Commit 9cf408e

Browse files
authored
*: fix regenerate.sh (grpc#7139)
1 parent 5e0fa76 commit 9cf408e

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

channelz/internal/protoconv/sockopt_linux.go

+3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ import (
2222
"time"
2323

2424
channelzpb "google.golang.org/grpc/channelz/grpc_channelz_v1"
25+
"google.golang.org/grpc/grpclog"
2526
"google.golang.org/grpc/internal/channelz"
2627
"google.golang.org/protobuf/types/known/anypb"
2728
"google.golang.org/protobuf/types/known/durationpb"
2829
)
2930

31+
var logger = grpclog.Component("channelz")
32+
3033
func convertToPbDuration(sec int64, usec int64) *durationpb.Duration {
3134
return durationpb.New(time.Duration(sec*1e9 + usec*1e3))
3235
}

channelz/internal/protoconv/sockopt_nonlinux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ import (
2626
"google.golang.org/grpc/internal/channelz"
2727
)
2828

29-
func sockoptToProto(skopts *channelz.SocketOptionData) []*channelzpb.SocketOption {
29+
func sockoptToProto(_ *channelz.SocketOptionData) []*channelzpb.SocketOption {
3030
return nil
3131
}

channelz/internal/protoconv/util.go

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
// implementation and the protobuf representation of all the entities.
2121
package protoconv
2222

23-
import (
24-
"google.golang.org/grpc/grpclog"
25-
)
26-
27-
var logger = grpclog.Component("channelz")
28-
2923
func strFromPointer(s *string) string {
3024
if s == nil {
3125
return ""

reflection/test/grpc_testing_not_regenerate/dynamic.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
syntax = "proto3";
1919

20-
option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate";
20+
option go_package = "google.golang.org/grpc/reflection/test/grpc_testing_not_regenerate";
2121

2222
package grpc.testing;
2323

reflection/test/grpc_testing_not_regenerate/testv3.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
syntax = "proto3";
1919

20-
option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate";
20+
option go_package = "google.golang.org/grpc/reflection/test/grpc_testing_not_regenerate";
2121

2222
package grpc.testingv3;
2323

regenerate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ mv ${WORKDIR}/out/google.golang.org/grpc/lookup/grpc_lookup_v1/* ${WORKDIR}/out/
118118

119119
# grpc_testing_not_regenerate/*.pb.go are not re-generated,
120120
# see grpc_testing_not_regenerate/README.md for details.
121-
rm ${WORKDIR}/out/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/*.pb.go
121+
rm ${WORKDIR}/out/google.golang.org/grpc/reflection/test/grpc_testing_not_regenerate/*.pb.go
122122

123123
cp -R ${WORKDIR}/out/google.golang.org/grpc/* .

0 commit comments

Comments
 (0)