Run rustfmt

v5-api
Dominik Nakamura 2 years ago
parent 9adb162f56
commit 2489ab49c0
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910

@ -5,13 +5,12 @@ use tokio::sync::{oneshot, Mutex};
use tokio_tungstenite::tungstenite::Message;
use tracing::debug;
use super::InnerError;
use crate::{
requests::{ClientRequest, EventSubscription, Identify},
responses::{Hello, Identified, RequestResponse, ServerMessage, Status},
};
use super::InnerError;
/// Wrapper for the list of ongoing requests that wait for response.
#[derive(Default)]
pub(super) struct ReceiverList(Mutex<HashMap<u64, oneshot::Sender<(Status, serde_json::Value)>>>);

@ -218,7 +218,7 @@ impl Client {
let handle = tokio::spawn(async move {
while let Some(Ok(msg)) = read.next().await {
if let Message::Close(info) = &msg {
if let Message::Close(info) = &msg {
if let Some(CloseFrame { reason, .. }) = info {
info!(%reason, "connection closed with reason");
}

Loading…
Cancel
Save