Skip to content

Commit

Permalink
fix: reduce backoff time for reconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Dec 11, 2023
1 parent cf7149d commit 3166824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onyx_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def events(self, include_details: bool = False) -> Device:
"Received unknown device data. Dropping device %s", key
)

def start(self, include_details: bool = False, backoff_time: int = 3):
def start(self, include_details: bool = False, backoff_time: int = 1):
"""Start the event stream via callback.
include_details: ensures all device details are queried
Expand Down Expand Up @@ -293,7 +293,7 @@ def _create_internal_task(self, coro, name=None):
task.add_done_callback(self._complete_internal_task)
self._activeTasks.add(task)

async def _read_handler(self, include_details: bool = False, backoff_time: int = 3):
async def _read_handler(self, include_details: bool = False, backoff_time: int = 1):
"""Handle rerunning the task in the background.
include_details: ensures all device details are queried
Expand Down

0 comments on commit 3166824

Please sign in to comment.