Archived
1
0
Fork 0

Update message.py

This commit is contained in:
yzhh 2023-08-30 20:43:29 +08:00
parent 3c85929705
commit 91685c5957

View file

@ -380,11 +380,14 @@ class FetchTarget(FT):
else: else:
else_.append(post_(fetch)) else_.append(post_(fetch))
if in_whitelist: async def post_in_whitelist(lst):
for x in in_whitelist: for l in lst:
await x await l
await asyncio.sleep(random.randint(1, 5)) await asyncio.sleep(random.randint(1, 5))
if in_whitelist:
asyncio.create_task(post_in_whitelist(in_whitelist))
async def post_not_in_whitelist(lst): async def post_not_in_whitelist(lst):
for f in lst: for f in lst:
await f await f