Skip to content

Commit

Permalink
Increased fcm Client timeout 1 -> 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed May 25, 2023
1 parent 48f2eb5 commit 0745909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobileraker_fcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def push(self, request: FcmRequestDto,) -> Optional[requests.Response]:
f"Sending to firebase fcm ({self.fcm_uri}): {jsons}")
try:
res = requests.post(
f'{self.fcm_uri}/companion/v2/update', json=jsons, timeout=1)
f'{self.fcm_uri}/companion/v2/update', json=jsons, timeout=5)
res.raise_for_status()
return res
except requests.exceptions.ConnectionError as err:
Expand Down

0 comments on commit 0745909

Please sign in to comment.