Commit c64fe216 authored by xuwencheng's avatar xuwencheng

store

parent 60102efc
......@@ -51,7 +51,6 @@ pub trait PublishEvent {
header: Header,
status: Status,
desc: impl AsRef<str>,
extra: Option<impl AsRef<str>>,
) -> SocketEvent;
fn ack(
......@@ -68,7 +67,6 @@ impl PublishEvent for SocketEvent {
header: Header,
status: Status,
desc: impl AsRef<str>,
extra: Option<impl AsRef<str>>,
) -> SocketEvent {
let Header(msg_id, msg_ty, qos) = header;
SocketEvent {
......@@ -86,7 +84,7 @@ impl PublishEvent for SocketEvent {
msg_ty: Some(msg_ty),
status: status as i32,
desc: desc.as_ref().to_string(),
extra: extra.map(|s| s.as_ref().to_string()),
extra: None,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment