Skip to content

Commit

Permalink
use uvloop if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
zrquan committed Sep 13, 2024
1 parent 6888a35 commit 1b0df56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
if options["async_mode"]:
from lib.connection.requester import AsyncRequester as Requester
from lib.core.fuzzer import AsyncFuzzer as Fuzzer

try:
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
except ImportError:
pass
else:
from lib.connection.requester import Requester
from lib.core.fuzzer import Fuzzer
Expand Down

0 comments on commit 1b0df56

Please sign in to comment.