Skip to content

Commit

Permalink
chg: [MAS] Removed useless imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Dec 26, 2023
1 parent 99267c4 commit 19515d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,19 @@ The API also provides a PubSub mechanism. Below is a simple client example.
PORT = int(os.environ.get("PORT") or "8000")
async def on_events(data, topic):
print(f"running callback for {topic}!")
print(data)
async def main():
# Create a client and subscribe to topics 'scan' and 'tst'.
client = PubSubClient(["scan", "tst"], callback=on_events)
client.start_client(f"ws://localhost:{PORT}/pubsub")
await client.wait_until_done()
asyncio.run(main())
Expand Down
2 changes: 0 additions & 2 deletions scandale/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from pydantic import ValidationError
from spade.agent import Agent
from spade.behaviour import CyclicBehaviour
from spade.behaviour import OneShotBehaviour
from spade.message import Message

from api.schemas import ScanDataCreate

Expand Down

0 comments on commit 19515d8

Please sign in to comment.