Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 timeout #120

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lunchable/models/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"""

def __init__(self, access_token: str | None = None) -> None:
super().__init__()
timeout = httpx.Timeout(connect=5, read=30, write=20, pool=5)
super().__init__(timeout=timeout)
api_headers = APIConfig.get_header(access_token=access_token)
self.headers.update(api_headers)

Expand All @@ -42,7 +43,8 @@
"""

def __init__(self, access_token: str | None = None) -> None:
super().__init__()
timeout = httpx.Timeout(connect=5, read=30, write=20, pool=5)
super().__init__(timeout=timeout)

Check warning on line 47 in lunchable/models/_core.py

View check run for this annotation

Codecov / codecov/patch

lunchable/models/_core.py#L46-L47

Added lines #L46 - L47 were not covered by tests
api_headers = APIConfig.get_header(access_token=access_token)
self.headers.update(api_headers)

Expand Down
Loading