Skip to content

Commit f09f5c1

Browse files
Update pyperformance/data-files/benchmarks/bm_async_tree/run_benchmark.py
1 parent 6d05680 commit f09f5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperformance/data-files/benchmarks/bm_async_tree/run_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def run(self):
6262

6363
class EagerMixin:
6464
async def run(self):
65-
loop = asyncio.get_event_loop()
65+
loop = asyncio.get_running_loop()
6666
if hasattr(asyncio, 'eager_task_factory'):
6767
loop.set_task_factory(asyncio.eager_task_factory)
6868
return await super().run()

0 commit comments

Comments
 (0)