Guarantee some buffer for messages

This commit is contained in:
Steven Fackler 2018-12-23 15:50:41 -08:00
parent a1fc412f9e
commit 760e4a4f3b

View File

@ -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 {