Skip to content

Commit

Permalink
fix: simple example
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Aug 3, 2023
1 parent b46dd3e commit 21ec5d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/simple/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
This script is for you to use to reproduce a bug or demonstrate a feature.
"""

import asyncio
from os import getenv

from controller import Controller
from controller.logging import logging_to_stdout
from controller.protocols import didexchange

ALICE = getenv("ALICE", "http://alice:3001")
Expand All @@ -16,3 +18,8 @@ async def main():
"""Test Controller protocols."""
async with Controller(base_url=ALICE) as alice, Controller(base_url=BOB) as bob:
await didexchange(alice, bob)


if __name__ == "__main__":
logging_to_stdout()
asyncio.run(main())

0 comments on commit 21ec5d9

Please sign in to comment.