modify argument of ConnectionTmpl::send_raw()

This commit is contained in:
tom
2022-07-21 17:54:07 +08:00
parent 9ab955bb8e
commit e811d5f18b
3 changed files with 4 additions and 4 deletions

View File

@@ -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(())
}