mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-26 07:56:34 +08:00
fix: typo in dequeue
This commit is contained in:
@@ -26,8 +26,8 @@ class Dequeue(Queue):
|
||||
self.unfinished_tasks += 1
|
||||
self.not_empty.notify()
|
||||
|
||||
def put_nowait(self, item):
|
||||
return self.put(item, block=False)
|
||||
def putleft_nowait(self, item):
|
||||
return self.putleft(item, block=False)
|
||||
|
||||
def _putleft(self, item):
|
||||
self.queue.appendleft(item)
|
||||
Reference in New Issue
Block a user