Skip to content

Commit c0962bc

Browse files
authored
adding default loop policy for asyncio (#1020)
1 parent 626a765 commit c0962bc

File tree

3 files changed

+138
-3
lines changed

3 files changed

+138
-3
lines changed

nettacker/core/lib/http.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
import time
88

99
import aiohttp
10+
import uvloop
1011

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

15+
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
16+
1417

1518
async def perform_request_action(action, request_options):
1619
start_time = time.time()

0 commit comments

Comments
 (0)