Skip to content

Commit

Permalink
Increase default timeout to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
neochine committed Dec 1, 2024
1 parent 414720c commit 18b114b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/solana/rpc/providers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ..core import RPCException
from ..types import URI

DEFAULT_TIMEOUT = 10
DEFAULT_TIMEOUT = 60


T = TypeVar("T", bound=RPCResult)
Expand Down
1 change: 1 addition & 0 deletions src/solana/rpc/providers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(
):
"""Init HTTPProvider."""
super().__init__(endpoint, extra_headers)
print(timeout)
self.session = httpx.Client(timeout=timeout)

def __str__(self) -> str:
Expand Down

0 comments on commit 18b114b

Please sign in to comment.