From b9c3b75b72e777e8e9cbb208cb82a36968bb8e5e Mon Sep 17 00:00:00 2001 From: Andrew Whitehead Date: Wed, 17 Jul 2019 14:23:16 -0700 Subject: [PATCH] fix timing report in performance demo Signed-off-by: Andrew Whitehead --- demo/runners/performance.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/demo/runners/performance.py b/demo/runners/performance.py index 9f4783af18..3d86db5c5a 100644 --- a/demo/runners/performance.py +++ b/demo/runners/performance.py @@ -162,15 +162,17 @@ async def main(start_port: int, show_timing: bool = False, routing: bool = False run_timer.start() try: - alice = AliceAgent(start_port, genesis_data=genesis) + alice = AliceAgent(start_port, genesis_data=genesis, timing=show_timing) await alice.listen_webhooks(start_port + 2) - faber = FaberAgent(start_port + 3, genesis_data=genesis) + faber = FaberAgent(start_port + 3, genesis_data=genesis, timing=show_timing) await faber.listen_webhooks(start_port + 5) await faber.register_did() if routing: - alice_router = RoutingAgent(start_port + 6, genesis_data=genesis) + alice_router = RoutingAgent( + start_port + 6, genesis_data=genesis, timing=show_timing + ) await alice_router.listen_webhooks(start_port + 8) await alice_router.register_did() @@ -331,8 +333,6 @@ async def check_received(agent, issue_count, pb): require_indy() try: - asyncio.get_event_loop().run_until_complete( - main(args.port, True, args.routing) - ) + asyncio.get_event_loop().run_until_complete(main(args.port, True, args.routing)) except KeyboardInterrupt: os._exit(1)