Commit 1952bdd2 authored by xuwencheng's avatar xuwencheng

store

parent a9e642e9
......@@ -57,7 +57,7 @@ pub trait PublishEvent {
info: &TokenInfo,
msg_id: i64,
desc: impl AsRef<str>,
extra: Option<impl AsRef<str>>,
extra: impl AsRef<str>,
) -> SocketEvent;
}
......@@ -92,7 +92,7 @@ impl PublishEvent for SocketEvent {
info: &TokenInfo,
msg_id: i64,
desc: impl AsRef<str>,
extra: Option<impl AsRef<str>>,
extra: impl AsRef<str>,
) -> SocketEvent {
SocketEvent {
seller_id: Some(info.seller_id),
......@@ -109,7 +109,7 @@ impl PublishEvent for SocketEvent {
msg_ty: None,
status: Status::Success as i32,
desc: desc.as_ref().to_string(),
extra: extra.map(|s| s.as_ref().to_string()),
extra: Some(extra.as_ref().to_string()),
}
}
}
......
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