Skip to content

Commit

Permalink
chore(core): Add assignees for each TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Jul 19, 2024
1 parent 5330a73 commit cacd6c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hrc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def _run(self) -> None:
await core_run_hook_func(self)

try:
# TODO: builtin rule enable hook function in every rules packages.
# TODO(简律纯): builtin rule enable hook function in every rules packages.
# for _rule in self.rules:
# for rule_enable_hook_func in self._rule_enable_hooks:
# await rule_enable_hook_func(_rule)
Expand All @@ -167,7 +167,7 @@ async def _run(self) -> None:
# except Exception as e:
# self.error_or_exception(
# f"Enable rule {_rule!r} failed:", e)
# TODO: builtin rule run hook function in every rules packages.
# TODO(简律纯): builtin rule run hook function in every rules packages.
# for _rule in self.rules:
# for rule_run_hook_func in self._rule_run_hooks:
# await rule_run_hook_func(_rule)
Expand All @@ -180,7 +180,7 @@ async def _run(self) -> None:
if hot_reload_task is not None: # pragma: no cover
await hot_reload_task
finally:
# TODO: builtin rule disable hook function in every rules packages.
# TODO(简律纯): builtin rule disable hook function in every rules packages.
# for _rule in self.rules:
# for rule_disable_hook_func in self._rule_disable_hooks:
# await rule_disable_hook_func(_rule)
Expand Down Expand Up @@ -433,7 +433,7 @@ async def _handle_event(self, current_event: Optional[Event[Any]] = None) -> Non
rule_state = _rule.__init_state__()
if rule_state is not None:
self.rule_state[_rule.name] = rule_state
# TODO: Refactor event handle process
# TODO(简律纯): Refactor event handle process
if await _rule.rule():
logger.info(f"Event will be handled by {_rule!r}")
try:
Expand Down

0 comments on commit cacd6c2

Please sign in to comment.