We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df99f0 commit 9b272c5Copy full SHA for 9b272c5
src/v1/meta.rs
@@ -123,6 +123,7 @@ impl ResponseHeader {
123
pub enum ErrorCode {
124
NotEnoughAvailableDatanodes = 1,
125
NotLeader = 2,
126
+ Suspend = 3,
127
}
128
129
impl Error {
@@ -143,6 +144,13 @@ impl Error {
143
144
err_msg: "Current server is not leader".to_string(),
145
146
147
+
148
+ pub fn suspend() -> Self {
149
+ Self {
150
+ code: ErrorCode::Suspend as i32,
151
+ err_msg: "suspend".to_string(),
152
+ }
153
154
155
156
impl HeartbeatResponse {
0 commit comments