|
@@ -64,8 +64,9 @@ impl Connection {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- pub async fn send(&self, _response: Response) -> Result<(), Error> {
|
|
|
- Ok(())
|
|
|
+ #[inline]
|
|
|
+ pub fn send(&self, response: Response) -> Result<(), Error> {
|
|
|
+ Ok(self.sender.try_send(response)?)
|
|
|
}
|
|
|
|
|
|
pub fn create_connection(&self, id: String) -> Result<(u128, u128, Sender<Response>), Error> {
|