File tree 6 files changed +7
-10
lines changed
channelz/internal/protoconv
reflection/test/grpc_testing_not_regenerate
6 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ import (
22
22
"time"
23
23
24
24
channelzpb "google.golang.org/grpc/channelz/grpc_channelz_v1"
25
+ "google.golang.org/grpc/grpclog"
25
26
"google.golang.org/grpc/internal/channelz"
26
27
"google.golang.org/protobuf/types/known/anypb"
27
28
"google.golang.org/protobuf/types/known/durationpb"
28
29
)
29
30
31
+ var logger = grpclog .Component ("channelz" )
32
+
30
33
func convertToPbDuration (sec int64 , usec int64 ) * durationpb.Duration {
31
34
return durationpb .New (time .Duration (sec * 1e9 + usec * 1e3 ))
32
35
}
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ import (
26
26
"google.golang.org/grpc/internal/channelz"
27
27
)
28
28
29
- func sockoptToProto (skopts * channelz.SocketOptionData ) []* channelzpb.SocketOption {
29
+ func sockoptToProto (_ * channelz.SocketOptionData ) []* channelzpb.SocketOption {
30
30
return nil
31
31
}
Original file line number Diff line number Diff line change 20
20
// implementation and the protobuf representation of all the entities.
21
21
package protoconv
22
22
23
- import (
24
- "google.golang.org/grpc/grpclog"
25
- )
26
-
27
- var logger = grpclog .Component ("channelz" )
28
-
29
23
func strFromPointer (s * string ) string {
30
24
if s == nil {
31
25
return ""
Original file line number Diff line number Diff line change 17
17
18
18
syntax = "proto3" ;
19
19
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" ;
21
21
22
22
package grpc.testing ;
23
23
Original file line number Diff line number Diff line change 17
17
18
18
syntax = "proto3" ;
19
19
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" ;
21
21
22
22
package grpc.testingv3 ;
23
23
Original file line number Diff line number Diff line change @@ -118,6 +118,6 @@ mv ${WORKDIR}/out/google.golang.org/grpc/lookup/grpc_lookup_v1/* ${WORKDIR}/out/
118
118
119
119
# grpc_testing_not_regenerate/*.pb.go are not re-generated,
120
120
# 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
122
122
123
123
cp -R ${WORKDIR} /out/google.golang.org/grpc/* .
You can’t perform that action at this time.
0 commit comments