Skip to content

Commit

Permalink
Update the naming of the tick method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ateska authored Aug 16, 2023
1 parent 0387de9 commit 02558ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asab/library/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ def __init__(self, app: Application, service_name: str, paths: typing.Union[str,
for layer, path in enumerate(paths):
# Create library for each layer of paths
self._create_library(path, layer)
app.PubSub.subscribe("Application.tick/60!", self._on_tick)
app.PubSub.subscribe("Application.tick/60!", self._on_tick60)

async def finalize(self, app):
while len(self.Libraries) > 0:
lib = self.Libraries.pop(-1)
await lib.finalize(self.App)

async def _on_tick(self, message_type):
async def _on_tick60(self, message_type):
await self._read_disabled()

def _create_library(self, path, layer):
Expand Down

0 comments on commit 02558ab

Please sign in to comment.