Use Queue instead of LifoQueue in LogsFromIterator.

That way you get the messages in newest to oldest rather than oldest
to newest.
This commit is contained in:
Rapptz 2016-01-15 14:56:52 -05:00
parent 26e9b79a2d
commit b64b89f484

View File

@ -39,7 +39,7 @@ class LogsFromIterator:
self.limit = limit self.limit = limit
self.before = before self.before = before
self.after = after self.after = after
self.messages = asyncio.LifoQueue() self.messages = asyncio.Queue()
@asyncio.coroutine @asyncio.coroutine
def fill_messages(self): def fill_messages(self):