Skip to content

Commit

Permalink
context specific for direct start_as
Browse files Browse the repository at this point in the history
  • Loading branch information
David Erb committed Apr 9, 2023
1 parent 4933617 commit 83b4d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chimpflow_lib/miners/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def aenter(self) -> None:
await self.server.start_process()

# Not running as a service?
elif self.context_specification.get("start_as") is None:
elif self.context_specification.get("start_as") == "direct":
# We need to activate the tick() task.
await self.server.activate()

Expand All @@ -86,5 +86,5 @@ async def aexit(self) -> None:
if self.context_specification.get("start_as") == "coro":
await self.server.direct_shutdown()

if self.context_specification.get("start_as") is None:
if self.context_specification.get("start_as") == "direct":
await self.server.deactivate()

0 comments on commit 83b4d97

Please sign in to comment.