mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 21:01:26 +03:00
modify argument of ConnectionTmpl::send_raw()
This commit is contained in:
@@ -456,8 +456,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn send_raw(&mut self, data: Vec<u8>) -> ResultType<()> {
|
||||
self.inner.send(bytes::Bytes::from(data)).await?;
|
||||
pub async fn send_raw(&mut self, data: Bytes) -> ResultType<()> {
|
||||
self.inner.send(data).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user