Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Jul 4, 2023
1 parent db55400 commit 0573d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/helper/message.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import queue

from app.utils.singleton import Singleton

class MessageHelper:

class MessageHelper(metaclass=Singleton):
"""
消息队列管理器
"""
Expand All @@ -12,4 +14,4 @@ def put(self, message: str):
self.queue.put(message)

def get(self):
return self.queue.get(block=True)
return self.queue.get(block=False)
1 change: 1 addition & 0 deletions app/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Scheduler(metaclass=Singleton):
})

def __init__(self):
return
# CookieCloud定时同步
if settings.COOKIECLOUD_INTERVAL:
self._scheduler.add_job(CookieCloudChain().process,
Expand Down

0 comments on commit 0573d6b

Please sign in to comment.