Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change this here but there is even an even more simplified version:

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/* .