feat: get_tyy_data 不更新的bug
This commit is contained in:
parent
27b225face
commit
b9cad6bbd8
|
@ -64,9 +64,10 @@ def get_tyy_data(*args):
|
|||
cd_thread_key = f"cd_thread_{host}_{port}"
|
||||
cd_thread_val = cache.get(cd_thread_key, default=None)
|
||||
if cd_thread_val is None:
|
||||
cache.set(cd_thread_key, "get")
|
||||
cache.set(cd_thread_key, "start")
|
||||
cd_thread = MyThread(target=get_tyy_data_t, args=(host, port), daemon=True)
|
||||
cd_thread.start()
|
||||
cache.set(cd_thread_key, "get")
|
||||
num = 0
|
||||
while True:
|
||||
num += 1
|
||||
|
|
Loading…
Reference in New Issue