mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
cargo fmt
This commit is contained in:
parent
c02a83f185
commit
1d86256733
5 changed files with 28 additions and 8 deletions
|
@ -27,7 +27,7 @@ pub(crate) enum WsEvent {
|
|||
SendPong(Payload<'static>),
|
||||
WispMessage(Option<Packet<'static>>, Option<Frame<'static>>),
|
||||
EndFut(Option<CloseReason>),
|
||||
Noop
|
||||
Noop,
|
||||
}
|
||||
|
||||
struct MuxMapValue {
|
||||
|
@ -316,10 +316,16 @@ impl<R: WebSocketRead + Send> MuxInner<R> {
|
|||
}
|
||||
}
|
||||
WsEvent::SendPing(payload, channel) => {
|
||||
let _ = channel.send(self.tx.write_frame(Frame::new(OpCode::Ping, payload, true)).await);
|
||||
let _ = channel.send(
|
||||
self.tx
|
||||
.write_frame(Frame::new(OpCode::Ping, payload, true))
|
||||
.await,
|
||||
);
|
||||
}
|
||||
WsEvent::SendPong(payload) => {
|
||||
self.tx.write_frame(Frame::new(OpCode::Pong, payload, true)).await?;
|
||||
self.tx
|
||||
.write_frame(Frame::new(OpCode::Pong, payload, true))
|
||||
.await?;
|
||||
}
|
||||
WsEvent::EndFut(x) => {
|
||||
if let Some(reason) = x {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue