Skip to content

Commit

Permalink
Rename proto import. (grpc#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakMukhi authored Apr 30, 2018
1 parent 8508314 commit 1cd00ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions channelz/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"net"

"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/wrappers"
wrpb "github.com/golang/protobuf/ptypes/wrappers"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/channelz"
Expand Down Expand Up @@ -173,8 +173,8 @@ func socketMetricToProto(sm *channelz.SocketMetric) *pb.Socket {
if ts, err := ptypes.TimestampProto(sm.SocketData.LastMessageReceivedTimestamp); err == nil {
s.Data.LastMessageReceivedTimestamp = ts
}
s.Data.LocalFlowControlWindow = &wrappers.Int64Value{Value: sm.SocketData.LocalFlowControlWindow}
s.Data.RemoteFlowControlWindow = &wrappers.Int64Value{Value: sm.SocketData.RemoteFlowControlWindow}
s.Data.LocalFlowControlWindow = &wrpb.Int64Value{Value: sm.SocketData.LocalFlowControlWindow}
s.Data.RemoteFlowControlWindow = &wrpb.Int64Value{Value: sm.SocketData.RemoteFlowControlWindow}

if sm.SocketData.LocalAddr != nil {
s.Local = addrToProto(sm.SocketData.LocalAddr)
Expand Down

0 comments on commit 1cd00ab

Please sign in to comment.