File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def __init__(self, config: PolarDBGraphDBConfig):
173173 user = user ,
174174 password = password ,
175175 dbname = self .db_name ,
176- connect_timeout = 60 , # Connection timeout in seconds
176+ connect_timeout = 10 , # Connection timeout in seconds
177177 keepalives_idle = 120 , # Seconds of inactivity before sending keepalive (should be < server idle timeout)
178178 keepalives_interval = 15 , # Seconds between keepalive retries
179179 keepalives_count = 5 , # Number of keepalive retries before considering connection dead
@@ -247,7 +247,7 @@ def _warm_up_connections_by_all(self):
247247
248248 @contextmanager
249249 def _get_connection (self ):
250- timeout = getattr ( self , " _connection_wait_timeout" , 5 )
250+ timeout = self . _connection_wait_timeout
251251 if timeout <= 0 :
252252 self ._semaphore .acquire ()
253253 else :
@@ -1919,7 +1919,7 @@ def search_by_embedding(
19191919 else :
19201920 pass
19211921
1922- logger .info (" search_by_embedding query: %s user_name: %s " , query , user_name )
1922+ logger .info (" search_by_embedding query: %s" , query )
19231923
19241924 with self ._get_connection () as conn , conn .cursor () as cursor :
19251925 if params :
You can’t perform that action at this time.
0 commit comments