Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rainliu authored Dec 4, 2023
1 parent 9e2ec45 commit ed92484
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webrtc/src/mux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,11 @@ impl Mux {
}

if let Some(ep) = endpoint {
match ep.buffer.write(buf).await
{
match ep.buffer.write(buf).await {
// Expected when bytes are received faster than the endpoint can process them
Err(Error::ErrBufferFull) => log::info!("mux: endpoint buffer is full, dropping packet"),
Err(Error::ErrBufferFull) => {
log::info!("mux: endpoint buffer is full, dropping packet")
}
Ok(_) => (),
Err(e) => return Err(crate::Error::Util(e)),
}
Expand Down

0 comments on commit ed92484

Please sign in to comment.