Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
callumforrester committed Nov 9, 2023
1 parent a4817be commit 801b926
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/blueapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class WorkerEventConfig(BlueapiBaseModel):
"""
Config for event broadcasting via the message bus
"""

broadcast_status_events: bool = True


Expand Down
5 changes: 4 additions & 1 deletion src/blueapi/service/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def __init__(

self.context.with_config(self.config.env)

self.worker = worker or RunEngineWorker(self.context, broadcast_statuses=self.config.env.events.broadcast_status_events,)
self.worker = worker or RunEngineWorker(
self.context,
broadcast_statuses=self.config.env.events.broadcast_status_events,
)
self.messaging_template = (
messaging_template
or StompMessagingTemplate.autoconfigured(self.config.stomp)
Expand Down

0 comments on commit 801b926

Please sign in to comment.