Skip to content

Commit

Permalink
try uvloop
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Nov 15, 2020
1 parent fc46dd3 commit d2d42ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mlat/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"""

import asyncio
import uvloop
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

import logging
import signal
import argparse

from mlat.server import jsonclient, output, coordinator, leakcheck


def hostport(s):
parts = s.split(':')
if len(parts) != 2:
Expand Down
2 changes: 1 addition & 1 deletion mlat/server/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def fuzzy(t):
return round(random.uniform(0.9*t, 1.1*t), 0)

completed_future = asyncio.Future()
completed_future = asyncio.get_event_loop().create_future()
completed_future.set_result(True)


Expand Down

0 comments on commit d2d42ae

Please sign in to comment.