chore (backend-rs): remove whitespaces
This commit is contained in:
parent
8534154792
commit
42f704b515
1 changed files with 2 additions and 5 deletions
|
@ -59,7 +59,7 @@ pub fn publish_to_stream(
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
let message = if let Some(kind) = kind {
|
let message = if let Some(kind) = kind {
|
||||||
format!(
|
format!(
|
||||||
"{{ \"type\": \"{}\", \"body\": {} }}",
|
"{{\"type\":\"{}\",\"body\":{}}}",
|
||||||
kind,
|
kind,
|
||||||
value.unwrap_or("null".to_string()),
|
value.unwrap_or("null".to_string()),
|
||||||
)
|
)
|
||||||
|
@ -69,10 +69,7 @@ pub fn publish_to_stream(
|
||||||
|
|
||||||
redis_conn()?.publish(
|
redis_conn()?.publish(
|
||||||
&CONFIG.host,
|
&CONFIG.host,
|
||||||
format!(
|
format!("{{\"channel\":\"{}\",\"message\":{}}}", stream, message),
|
||||||
"{{ \"channel\": \"{}\", \"message\": {} }}",
|
|
||||||
stream, message,
|
|
||||||
),
|
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue