Skip to content

Commit

Permalink
fix timing report in performance demo
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Jul 17, 2019
1 parent 4928f07 commit b9c3b75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demo/runners/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)

0 comments on commit b9c3b75

Please sign in to comment.