Update message.py
This commit is contained in:
parent
3c85929705
commit
91685c5957
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue