Skip to content

Commit ffd12f1

Browse files
committed
rm merge err
1 parent 0c2f9c8 commit ffd12f1

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

tests/src/benches/redis.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ mod proto_hook {
173173
fn ctx(&self) -> u64 {
174174
todo!()
175175
}
176+
177+
fn attachment(&self) -> Option<&protocol::Attachment> {
178+
todo!()
179+
}
176180
}
177181
#[derive(Debug)]
178182
pub(crate) struct TestStream {

tests/src/mq/protocol.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
use std::cell::UnsafeCell;
2+
13
use crate::proto_hook;
24
use protocol::{
3-
msgque::{McqText, OP_GET, OP_QUIT, OP_SET, OP_STATS, OP_VERSION},
4-
AsyncBufRead, Attachment, BufRead, Commander, Error, HashedCommand, Metric, Proto,
5-
RequestProcessor, Stream, Writer,
5+
msgque::{MsgQue, OP_GET, OP_QUIT, OP_SET, OP_STATS, OP_VERSION},
6+
Attachment, BufRead, Commander, Error, HashedCommand, Metric, Proto,
67
};
78

8-
use protocol::BufRead;
9-
109
/// 请求以任意长度发送
1110
#[test]
1211
fn test_req_reenter() {
@@ -229,12 +228,14 @@ fn test_rsp() {
229228
}
230229
}
231230

231+
#[allow(dead_code)]
232232
struct TestCtx {
233233
req: HashedCommand,
234234
metric: TestMetric,
235235
}
236236

237237
impl TestCtx {
238+
#[allow(dead_code)]
238239
fn new(req: HashedCommand) -> Self {
239240
Self {
240241
req,

tests/src/proto_hook.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ impl Commander<TestMetric, TestMetricItem> for TestCtx {
7777
fn ctx(&self) -> u64 {
7878
todo!()
7979
}
80+
81+
fn attachment(&self) -> Option<&protocol::Attachment> {
82+
todo!()
83+
}
8084
}
8185
#[derive(Debug)]
8286
pub(crate) struct TestStream {

0 commit comments

Comments
 (0)