Skip to content

Commit

Permalink
*: fix regenerate.sh (#7139)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindbr8 authored Apr 18, 2024
1 parent 5e0fa76 commit 9cf408e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
3 changes: 3 additions & 0 deletions channelz/internal/protoconv/sockopt_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ import (
"time"

channelzpb "google.golang.org/grpc/channelz/grpc_channelz_v1"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/durationpb"
)

var logger = grpclog.Component("channelz")

func convertToPbDuration(sec int64, usec int64) *durationpb.Duration {
return durationpb.New(time.Duration(sec*1e9 + usec*1e3))
}
Expand Down
2 changes: 1 addition & 1 deletion channelz/internal/protoconv/sockopt_nonlinux.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ import (
"google.golang.org/grpc/internal/channelz"
)

func sockoptToProto(skopts *channelz.SocketOptionData) []*channelzpb.SocketOption {
func sockoptToProto(_ *channelz.SocketOptionData) []*channelzpb.SocketOption {
return nil
}
6 changes: 0 additions & 6 deletions channelz/internal/protoconv/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
// implementation and the protobuf representation of all the entities.
package protoconv

import (
"google.golang.org/grpc/grpclog"
)

var logger = grpclog.Component("channelz")

func strFromPointer(s *string) string {
if s == nil {
return ""
Expand Down
2 changes: 1 addition & 1 deletion reflection/test/grpc_testing_not_regenerate/dynamic.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

syntax = "proto3";

option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate";
option go_package = "google.golang.org/grpc/reflection/test/grpc_testing_not_regenerate";

package grpc.testing;

Expand Down
2 changes: 1 addition & 1 deletion reflection/test/grpc_testing_not_regenerate/testv3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

syntax = "proto3";

option go_package = "google.golang.org/grpc/reflection/grpc_testing_not_regenerate";
option go_package = "google.golang.org/grpc/reflection/test/grpc_testing_not_regenerate";

package grpc.testingv3;

Expand Down
2 changes: 1 addition & 1 deletion regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ mv ${WORKDIR}/out/google.golang.org/grpc/lookup/grpc_lookup_v1/* ${WORKDIR}/out/

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

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

0 comments on commit 9cf408e

Please sign in to comment.