Skip to content

Commit

Permalink
add timeout to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
zelje committed Jul 18, 2024
1 parent ecc6f2d commit b2f63d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doge_client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self) -> None:
self.url = config.NODE_RPC_URL

def _post(self, session: Session, json=None):
return session.post(self.url, json=json)
return session.post(self.url, json=json, timeout=20)

def get_transaction(self, session: Session, txid: str):
return self._post(
Expand Down

0 comments on commit b2f63d9

Please sign in to comment.