Skip to content

Commit 3f51884

Browse files
author
kenneth gabriel
committed
Revert "feat: added timeout to options"
This reverts commit 069ada2.
1 parent 069ada2 commit 3f51884

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

supabase/client.py

-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def __init__(
4848
auth_url=self.auth_url,
4949
supabase_key=self.supabase_key,
5050
client_options=options,
51-
5251
)
5352
# TODO(fedden): Bring up to parity with JS client.
5453
# self.realtime: SupabaseRealtimeClient = self._init_realtime_client(
@@ -61,7 +60,6 @@ def __init__(
6160
supabase_key=self.supabase_key,
6261
headers=options.headers,
6362
schema=options.schema,
64-
timeout=options.timeout
6563
)
6664

6765
def storage(self) -> SupabaseStorageClient:

supabase/lib/client_options.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from dataclasses import dataclass, field
2-
from typing import Any, Callable, Dict, Optional, Union
2+
from typing import Any, Callable, Dict, Optional
33

44
from gotrue import SyncMemoryStorage, SyncSupportedStorage
5-
from postgrest.constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
6-
from httpx import Timeout
75

86
from supabase import __version__
97

@@ -36,9 +34,6 @@ class ClientOptions:
3634
fetch: Optional[Callable] = None
3735
"""A custom `fetch` implementation."""
3836

39-
timeout: Union[int, float, Timeout] = DEFAULT_POSTGREST_CLIENT_TIMEOUT
40-
"""Timeout passed to the SyncPostgrestClient instance."""
41-
4237
def replace(
4338
self,
4439
schema: Optional[str] = None,
@@ -48,7 +43,6 @@ def replace(
4843
local_storage: Optional[SyncSupportedStorage] = None,
4944
realtime: Optional[Dict[str, Any]] = None,
5045
fetch: Optional[Callable] = None,
51-
timeout: Union[int, float, Timeout] = DEFAULT_POSTGREST_CLIENT_TIMEOUT
5246
) -> "ClientOptions":
5347
"""Create a new SupabaseClientOptions with changes"""
5448
client_options = ClientOptions()
@@ -61,5 +55,4 @@ def replace(
6155
client_options.local_storage = local_storage or self.local_storage
6256
client_options.realtime = realtime or self.realtime
6357
client_options.fetch = fetch or self.fetch
64-
client_options.timeout = timeout or self.timeout
6558
return client_options

0 commit comments

Comments
 (0)