ephraimbuddy commented on code in PR #35983:
URL: https://github.com/apache/airflow/pull/35983#discussion_r1411881928


##########
airflow/providers/weaviate/hooks/weaviate.py:
##########
@@ -94,18 +93,14 @@ def get_conn(self) -> WeaviateClient:
             url=url, auth_client_secret=auth_client_secret, 
additional_headers=additional_headers
         )
 
+    @cached_property
     def get_client(self) -> WeaviateClient:

Review Comment:
   ads: 
https://github.com/apache/airflow/blob/396b1ba34e7df28eebfafc174494812aa50af966/airflow/providers/google/ads/hooks/ads.py#L162
   opensearch:
   
https://github.com/apache/airflow/blob/396b1ba34e7df28eebfafc174494812aa50af966/airflow/providers/opensearch/hooks/opensearch.py#L56
   adx:
   
https://github.com/apache/airflow/blob/396b1ba34e7df28eebfafc174494812aa50af966/airflow/providers/microsoft/azure/hooks/adx.py#L127
   
   It's just to cache the connection we have made and use it. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to