Skip to content

Commit

Permalink
Fixed a call to sleep that should have been async
Browse files Browse the repository at this point in the history
  • Loading branch information
devl00p committed Jun 23, 2021
1 parent ff09492 commit 26d16d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wapitiCore/net/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from time import sleep
from typing import Tuple, List
import asyncio
from os import cpu_count

# Third-parties
import httpx
Expand Down Expand Up @@ -112,7 +111,7 @@ async def inner_wrapper(*args, **kwargs):
final_excep = None
for counter in range(times):
if counter > 0:
sleep(delay)
await asyncio.sleep(delay)

try:
value = await function(*args, **kwargs)
Expand Down

0 comments on commit 26d16d0

Please sign in to comment.