diff --git a/ping/ping.pb.go b/ping/ping.pb.go index 8c93921..f0c6297 100644 --- a/ping/ping.pb.go +++ b/ping/ping.pb.go @@ -25,7 +25,7 @@ type PingRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` + Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } @@ -61,7 +61,7 @@ func (*PingRequest) Descriptor() ([]byte, []int) { return file_ping_ping_proto_rawDescGZIP(), []int{0} } -func (x *PingRequest) GetSeq() uint32 { +func (x *PingRequest) GetSeq() uint64 { if x != nil { return x.Seq } @@ -80,7 +80,7 @@ type PingResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` + Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } @@ -116,7 +116,7 @@ func (*PingResponse) Descriptor() ([]byte, []int) { return file_ping_ping_proto_rawDescGZIP(), []int{1} } -func (x *PingResponse) GetSeq() uint32 { +func (x *PingResponse) GetSeq() uint64 { if x != nil { return x.Seq } @@ -136,16 +136,16 @@ var file_ping_ping_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x33, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x34, 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x12, + 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x37, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x11, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x6c, - 0x75, 0x6d, 0x65, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x67, + 0x72, 0x70, 0x63, 0x2d, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/ping/ping.proto b/ping/ping.proto index f1a3d39..2a9b748 100644 --- a/ping/ping.proto +++ b/ping/ping.proto @@ -9,11 +9,11 @@ service ping { } message PingRequest { - uint32 seq = 1; + uint64 seq = 1; string data = 2; } message PingResponse { - uint32 seq = 1; + uint64 seq = 1; string data = 2; } diff --git a/ping_client/main.go b/ping_client/main.go index eb71e7f..bd2e679 100644 --- a/ping_client/main.go +++ b/ping_client/main.go @@ -26,7 +26,7 @@ func genPayload(s int) string { } func main() { - var i uint32 + var i uint64 ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) defer cancel()