Skip to content

Commit 7c15648

Browse files
Fix edge functions timeout
1 parent 6fdab91 commit 7c15648

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supabase_functions/_sync/functions_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class SyncFunctionsClient:
10-
def __init__(self, url: str, headers: Dict, verify: bool = True):
10+
def __init__(self, url: str, headers: Dict, timeout: int, verify: bool = True):
1111
self.url = url
1212
self.headers = {
1313
"User-Agent": f"supabase-py/functions-py v{__version__}",
@@ -18,6 +18,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True):
1818
headers=self.headers,
1919
verify=bool(verify),
2020
follow_redirects=True,
21+
timeout=timeout,
2122
)
2223

2324
def _request(

0 commit comments

Comments
 (0)