Guarantee some buffer for messages
This commit is contained in:
parent
a1fc412f9e
commit
760e4a4f3b
@ -109,7 +109,7 @@ impl Client {
|
||||
|
||||
pub fn send(&self, request: PendingRequest) -> Result<mpsc::Receiver<Message>, Error> {
|
||||
let (messages, idle) = request.0?;
|
||||
let (sender, receiver) = mpsc::channel(0);
|
||||
let (sender, receiver) = mpsc::channel(1);
|
||||
self.0
|
||||
.sender
|
||||
.unbounded_send(Request {
|
||||
|
Loading…
Reference in New Issue
Block a user