批量用户查询

This commit is contained in:
wuaho 2021-04-26 15:40:26 +08:00
parent 7334ad9169
commit 431af3aff1

View File

@ -5,7 +5,7 @@ from v2 import *
db_client = CK(**settings.CK_CONFIG)
sketch = Sketch(db_client)
handler_event = HandlerEvent(db_client)
handler_event = HandlerEvent(db_client, settings.GAME)
handler_user = HandlerUser(db_client, settings.GAME)
transmitter = Transmitter(db_client, sketch)
@ -18,7 +18,7 @@ def run():
for topic, msg in consumer():
i += 1
if i > 10000:
print(time.time() * 1000-ts)
print(time.time() * 1000 - ts)
ts = time.time() * 1000
i = 0