http服务,异常导出接口

This commit is contained in:
2022-06-05 09:36:41 +08:00
parent 427f28bd57
commit c10b1e114d
3 changed files with 23 additions and 10 deletions

View File

@ -1,3 +1,11 @@
import time
from queue import SimpleQueue
MESSAGE_QUEUE = SimpleQueue()
MESSAGE_QUEUE: "SimpleQueue[MessagePayload]" = SimpleQueue()
class MessagePayload(object):
def __init__(self, body: bytes, timestamp: str = ""):
self.request_timestamp = timestamp
self.body = body
self.curretnt_timestamp = time.time()