From c918ca2bce018613d727361e9701ea161fd89679 Mon Sep 17 00:00:00 2001 From: dkeysil Date: Fri, 19 Jan 2024 14:55:05 +0100 Subject: [PATCH] Change chain id type to in64 --- protocol/bot_metrics.pb.go | 12 ++++++------ protocol/bot_metrics.proto | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/protocol/bot_metrics.pb.go b/protocol/bot_metrics.pb.go index bfef6de..40b7d5f 100644 --- a/protocol/bot_metrics.pb.go +++ b/protocol/bot_metrics.pb.go @@ -96,7 +96,7 @@ type MetricSummary struct { P95 float64 `protobuf:"fixed64,6,opt,name=p95,proto3" json:"p95,omitempty"` Details string `protobuf:"bytes,7,opt,name=details,proto3" json:"details,omitempty"` ShardId int32 `protobuf:"varint,8,opt,name=shardId,proto3" json:"shardId,omitempty"` - ChainId uint64 `protobuf:"varint,9,opt,name=chainId,proto3" json:"chainId,omitempty"` + ChainId int64 `protobuf:"varint,9,opt,name=chainId,proto3" json:"chainId,omitempty"` } func (x *MetricSummary) Reset() { @@ -187,7 +187,7 @@ func (x *MetricSummary) GetShardId() int32 { return 0 } -func (x *MetricSummary) GetChainId() uint64 { +func (x *MetricSummary) GetChainId() int64 { if x != nil { return x.ChainId } @@ -205,7 +205,7 @@ type AgentMetric struct { Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` ShardId int32 `protobuf:"varint,6,opt,name=shardId,proto3" json:"shardId,omitempty"` - ChainId uint64 `protobuf:"varint,7,opt,name=chainId,proto3" json:"chainId,omitempty"` + ChainId int64 `protobuf:"varint,7,opt,name=chainId,proto3" json:"chainId,omitempty"` } func (x *AgentMetric) Reset() { @@ -282,7 +282,7 @@ func (x *AgentMetric) GetShardId() int32 { return 0 } -func (x *AgentMetric) GetChainId() uint64 { +func (x *AgentMetric) GetChainId() int64 { if x != nil { return x.ChainId } @@ -362,7 +362,7 @@ var file_bot_metrics_proto_rawDesc = []byte{ 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xbd, 0x01, 0x0a, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0xbd, 0x01, 0x0a, 0x0b, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, @@ -374,7 +374,7 @@ var file_bot_metrics_proto_rawDesc = []byte{ 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x0f, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x0f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x66, 0x6f, 0x72, 0x74, 0x61, diff --git a/protocol/bot_metrics.proto b/protocol/bot_metrics.proto index 1d2d610..1ba5e95 100644 --- a/protocol/bot_metrics.proto +++ b/protocol/bot_metrics.proto @@ -19,7 +19,7 @@ message MetricSummary { double p95 = 6; string details = 7; int32 shardId = 8; - uint64 chainId = 9; + int64 chainId = 9; } message AgentMetric { @@ -29,7 +29,7 @@ message AgentMetric { double value = 4; string details = 5; int32 shardId = 6; - uint64 chainId = 7; + int64 chainId = 7; } message AgentMetricList {