Skip to content

Commit

Permalink
Clarify what the expected args are
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermedemouraa committed May 28, 2024
1 parent ad77ae7 commit 148e306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/farm_ng/core/event_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ async def request_handler_wrapper(
if self._request_reply_handler is None:
self.logger.error("No request/reply handler set, returning Empty()")
return Empty(), None
expected_args: int = 2
expected_args: list = ["reply_message", "reply_event"]
result = await self._request_reply_handler(*args, **kwargs)
if isinstance(result, tuple) and len(result) == expected_args:
if isinstance(result, tuple) and len(result) == len(expected_args):
return result
return result, None

Expand Down

0 comments on commit 148e306

Please sign in to comment.