You've already forked Douyin_Web_Live
http服务,异常导出接口
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user