Skip to content

Commit 2f5749c

Browse files
committed
add
1 parent c531edd commit 2f5749c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

rocketmq-store/src/base/message_result.rs

+15-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,26 @@ pub struct PutMessageResult {
5151

5252
impl Default for AppendMessageResult {
5353
fn default() -> Self {
54-
unimplemented!()
54+
Self {
55+
status: Default::default(),
56+
wrote_offset: 0,
57+
wrote_bytes: 0,
58+
msg_id: "".to_string(),
59+
store_timestamp: 0,
60+
logics_offset: 0,
61+
page_cache_rt: 0,
62+
msg_num: 0,
63+
}
5564
}
5665
}
5766

5867
impl Default for PutMessageResult {
5968
fn default() -> Self {
60-
unimplemented!()
69+
Self{
70+
put_message_status: Default::default(),
71+
append_message_result: None,
72+
remote_put: false,
73+
}
6174
}
6275
}
6376

0 commit comments

Comments
 (0)