mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
make the logic right
This commit is contained in:
@@ -297,7 +297,7 @@ proc read*[T](future: FutureStream[T]): Future[(bool, T)] =
|
||||
res[0] = false
|
||||
else:
|
||||
res[0] = true
|
||||
res[1] = fs.queue.popLast()
|
||||
res[1] = fs.queue.popFirst()
|
||||
|
||||
if not resFut.finished:
|
||||
resFut.complete(res)
|
||||
|
||||
Reference in New Issue
Block a user