Skip to content

Commit

Permalink
chore: rename subscription -> listen
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Jun 19, 2024
1 parent f3ab5dd commit fb4d1d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composio/client/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def set_alive(self) -> None:
"""Set `_alive` to True."""
self._alive = True

def run(self) -> None:
def listen(self) -> None:
"""Wait infinitely."""
while True:
time.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion composio/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,6 @@ def get_action_schemas(

return items

def create_trigger_subscription(self, timeout: float = 15.0) -> TriggerSubscription:
def create_trigger_listener(self, timeout: float = 15.0) -> TriggerSubscription:
"""Create trigger subscription."""
return self.client.triggers.subscribe(timeout=timeout)

0 comments on commit fb4d1d5

Please sign in to comment.