@@ -79,6 +79,7 @@ class PostgresDatabaseConfig:
7979 schema_name : str = 'public'
8080 password : str = ''
8181 immune_tables : List [str ] = Field (default_factory = list )
82+ connection_timeout : int = 60
8283
8384 @property
8485 def connection_string (self ) -> str :
@@ -102,7 +103,8 @@ class HTTPConfig:
102103 retry_multiplier : Optional [float ] = None
103104 ratelimit_rate : Optional [int ] = None
104105 ratelimit_period : Optional [int ] = None
105- connection_limit : Optional [int ] = None
106+ connection_limit : Optional [int ] = None # default 100
107+ connection_timeout : Optional [int ] = None # default 60
106108 batch_size : Optional [int ] = None
107109
108110 def merge (self , other : Optional ['HTTPConfig' ]) -> 'HTTPConfig' :
@@ -151,7 +153,7 @@ def module_name(self) -> str:
151153 @validator ('address' , allow_reuse = True )
152154 def valid_address (cls , v ):
153155 # NOTE: Wallet addresses are allowed for debugging purposes (source field). Do we need a separate section?
154- if not (v .startswith ('KT1 ' ) or v .startswith ('tz1 ' )) or len (v ) != 36 :
156+ if not (v .startswith ('KT ' ) or v .startswith ('tz ' )) or len (v ) != 36 :
155157 raise ConfigurationError (f'`{ v } ` is not a valid contract address' )
156158 return v
157159
@@ -755,7 +757,6 @@ class HasuraConfig:
755757 select_limit : int = 100
756758 allow_aggregations : bool = True
757759 camel_case : bool = False
758- connection_timeout : int = 5
759760 rest : bool = True
760761 http : Optional [HTTPConfig ] = None
761762
0 commit comments