Skip to content

Commit

Permalink
Merge pull request #31 from cita-cloud/waiting_block
Browse files Browse the repository at this point in the history
update proto: waiting_block
  • Loading branch information
JLerxky authored Jan 16, 2024
2 parents 11336b1 + 69e36ef commit 69ed713
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cloud-proto/protos
2 changes: 2 additions & 0 deletions cloud-proto/src/proto/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,6 @@ pub struct NodeStatus {
pub is_danger: bool,
#[prost(uint64, tag = "7")]
pub init_block_number: u64,
#[prost(uint64, tag = "8")]
pub waiting_block: u64,
}
4 changes: 0 additions & 4 deletions cloud-proto/src/proto/status_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ pub enum StatusCodeEnum {
DialNodeFail = 404,
/// add an existed peer
AddExistedPeer = 405,
/// too many requests
TooManyRequests = 406,
/// / executor from 500
/// / Executor server not ready
ExecuteServerNotReady = 500,
Expand Down Expand Up @@ -266,7 +264,6 @@ impl StatusCodeEnum {
StatusCodeEnum::MultiAddrParseError => "MultiAddrParseError",
StatusCodeEnum::DialNodeFail => "DialNodeFail",
StatusCodeEnum::AddExistedPeer => "AddExistedPeer",
StatusCodeEnum::TooManyRequests => "TooManyRequests",
StatusCodeEnum::ExecuteServerNotReady => "ExecuteServerNotReady",
StatusCodeEnum::InternalChannelDisconnected => "InternalChannelDisconnected",
StatusCodeEnum::ReenterBlock => "ReenterBlock",
Expand Down Expand Up @@ -359,7 +356,6 @@ impl StatusCodeEnum {
"MultiAddrParseError" => Some(Self::MultiAddrParseError),
"DialNodeFail" => Some(Self::DialNodeFail),
"AddExistedPeer" => Some(Self::AddExistedPeer),
"TooManyRequests" => Some(Self::TooManyRequests),
"ExecuteServerNotReady" => Some(Self::ExecuteServerNotReady),
"InternalChannelDisconnected" => Some(Self::InternalChannelDisconnected),
"ReenterBlock" => Some(Self::ReenterBlock),
Expand Down
Binary file modified cloud-proto/src/reflect/controller.bin
Binary file not shown.
Binary file modified cloud-proto/src/reflect/executor.bin
Binary file not shown.

0 comments on commit 69ed713

Please sign in to comment.