File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,9 @@ def storage(self):
191
191
def functions (self ):
192
192
if self ._functions is None :
193
193
self ._functions = AsyncFunctionsClient (
194
- self .functions_url , self .options .headers
194
+ self .functions_url ,
195
+ self .options .headers ,
196
+ self .options .function_client_timeout ,
195
197
)
196
198
return self ._functions
197
199
Original file line number Diff line number Diff line change @@ -191,7 +191,9 @@ def storage(self):
191
191
def functions (self ):
192
192
if self ._functions is None :
193
193
self ._functions = SyncFunctionsClient (
194
- self .functions_url , self .options .headers
194
+ self .functions_url ,
195
+ self .options .headers ,
196
+ self .options .function_client_timeout ,
195
197
)
196
198
return self ._functions
197
199
Original file line number Diff line number Diff line change 5
5
from httpx import Timeout
6
6
from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
7
7
from storage3 .constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT
8
+ from supafunc .utils import DEFAULT_FUNCTION_CLIENT_TIMEOUT
8
9
9
10
from supabase import __version__
10
11
@@ -42,6 +43,11 @@ class ClientOptions:
42
43
storage_client_timeout : Union [int , float , Timeout ] = DEFAULT_STORAGE_CLIENT_TIMEOUT
43
44
"""Timeout passed to the SyncStorageClient instance"""
44
45
46
+ function_client_timeout : Union [int , float , Timeout ] = (
47
+ DEFAULT_FUNCTION_CLIENT_TIMEOUT
48
+ )
49
+ """Timeout passed to the SyncFunctionsClient instance."""
50
+
45
51
flow_type : AuthFlowType = "implicit"
46
52
"""flow type to use for authentication"""
47
53
You can’t perform that action at this time.
0 commit comments