diff options
| author | tv <tv@krebsco.de> | 2026-10-19 23:56:52 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-19 23:56:52 +0200 |
| commit | 6dd05b13eed8f9f124d12812a1561fa85a575bc4 (patch) | |
| tree | fa8406ed35f4c9800be5f7c9666e297b61cc6446 /src/mycelium.rs | |
| parent | 2dd4712902c63bfe393933ed165bb7481aa932ec (diff) | |
cargo fmt
Diffstat (limited to 'src/mycelium.rs')
| -rw-r--r-- | src/mycelium.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mycelium.rs b/src/mycelium.rs index 3471f71..8d0821b 100644 --- a/src/mycelium.rs +++ b/src/mycelium.rs @@ -33,7 +33,6 @@ const TOPIC_PONG: &str = "continuum.v1.pong"; const EMPTY_QUEUE_DELAY: Duration = Duration::from_millis(25); - #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] struct InboundMessage { @@ -555,10 +554,7 @@ impl Transport for MyceliumTransport { } async fn send_encoded(&self, message: &EncodedMessage) -> Result<()> { - tracing::debug!( - payload_bytes = message.body.len(), - "Sending message" - ); + tracing::debug!(payload_bytes = message.body.len(), "Sending message"); let response = self .client .post(self.messages_endpoint.clone()) @@ -700,9 +696,7 @@ fn decode_payload(topic: &str, payload: &str) -> Result<ParsedMessage, Transport } TOPIC_PING => Ok(ParsedMessage::Ping(bytes_to_keepalive(&bytes)?)), TOPIC_PONG => Ok(ParsedMessage::Pong(bytes_to_keepalive(&bytes)?)), - t => { - Err(TransportError::UnknownTopic(t.to_string())) - } + t => Err(TransportError::UnknownTopic(t.to_string())), } } |
