Skip to content

Commit 83b4d97

Browse files
author
David Erb
committed
context specific for direct start_as
1 parent 4933617 commit 83b4d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chimpflow_lib/miners/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def aenter(self) -> None:
6060
await self.server.start_process()
6161

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

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

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

0 commit comments

Comments
 (0)