1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use kvproto::pdpb::*;
use super::*;
#[derive(Debug)]
pub struct Incompatible;
impl PdMocker for Incompatible {
fn ask_batch_split(&self, _: &AskBatchSplitRequest) -> Option<Result<AskBatchSplitResponse>> {
let mut err = Error::default();
err.set_type(ErrorType::IncompatibleVersion);
let mut header = ResponseHeader::default();
header.set_error(err);
let mut resp = AskBatchSplitResponse::default();
resp.set_header(header);
Some(Ok(resp))
}
}