Skip to content

Commit

Permalink
fix pre-commit and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Oct 18, 2023
1 parent e82cb67 commit 9e555a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion example_publisher/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def __init__(self, config: Config) -> None:
async def start(self):
await self.pythd.connect()

self._product_update_task = asyncio.create_task(self._start_product_update_loop())
self._product_update_task = asyncio.create_task(
self._start_product_update_loop()
)

async def _start_product_update_loop(self):
await self._upd_products()
Expand Down
4 changes: 3 additions & 1 deletion example_publisher/pythd.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ async def subscribe_price_sched(self, account: str) -> int:

def _notify_price_sched(self, subscription: int) -> None:
log.debug("notify_price_sched RPC call received", subscription=subscription)
task = asyncio.get_event_loop().create_task(self.on_notify_price_sched(subscription))
task = asyncio.get_event_loop().create_task(
self.on_notify_price_sched(subscription)
)
self._notify_price_sched_tasks.add(task)
task.add_done_callback(lambda: self._notify_price_sched_tasks.remove(task))

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "example-publisher"
version = "1.0.1"
version = "1.0.2"
description = ""
authors = []
license = "Apache-2"
Expand Down

0 comments on commit 9e555a3

Please sign in to comment.