Skip to content

Commit

Permalink
adding default loop policy for asyncio (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
pUrGe12 authored Feb 20, 2025
1 parent 626a765 commit c0962bc
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 3 deletions.
3 changes: 3 additions & 0 deletions nettacker/core/lib/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
import time

import aiohttp
import uvloop

from nettacker.core.lib.base import BaseEngine
from nettacker.core.utils.common import replace_dependent_response, reverse_and_regex_condition

asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())


async def perform_request_action(action, request_options):
start_time = time.time()
Expand Down
Loading

0 comments on commit c0962bc

Please sign in to comment.