Skip to content

Commit 16fe032

Browse files
Fix edge functions timeout
1 parent bb6599b commit 16fe032

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supabase_functions/_async/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 AsyncFunctionsClient:
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__}",
@@ -19,6 +19,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True):
1919
verify=bool(verify),
2020
follow_redirects=True,
2121
http2=True,
22+
timeout=timeout,
2223
)
2324

2425
async def _request(

0 commit comments

Comments
 (0)