chore (backend-rs): remove whitespaces

This commit is contained in:
naskya 2024-04-26 06:51:28 +09:00
parent 8534154792
commit 42f704b515
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -59,7 +59,7 @@ pub fn publish_to_stream(
) -> Result<(), Error> {
let message = if let Some(kind) = kind {
format!(
"{{ \"type\": \"{}\", \"body\": {} }}",
"{{\"type\":\"{}\",\"body\":{}}}",
kind,
value.unwrap_or("null".to_string()),
)
@ -69,10 +69,7 @@ pub fn publish_to_stream(
redis_conn()?.publish(
&CONFIG.host,
format!(
"{{ \"channel\": \"{}\", \"message\": {} }}",
stream, message,
),
format!("{{\"channel\":\"{}\",\"message\":{}}}", stream, message),
)?;
Ok(())