Skip to content

Commit

Permalink
doc: note for sync incompatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Aug 9, 2024
1 parent f62db1e commit c00f773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rumqttc/src/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ impl Network {
}
}

// NOTE: WsStream currently doesn't support Sync, so we disable Sync enforcement for websocket builds

#[cfg(not(feature = "websocket"))]
pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Sync + Unpin {}
#[cfg(not(feature = "websocket"))]
Expand Down

0 comments on commit c00f773

Please sign in to comment.