From 5960b529860a3a806c3274036c53f0ba5c0b0366 Mon Sep 17 00:00:00 2001 From: Alexandros Milaios Date: Wed, 20 Sep 2023 14:50:02 +0300 Subject: [PATCH] chore: small fix --- .../source_facebook_marketing/api.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py index eb4b8260a703..869107426c2a 100644 --- a/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py +++ b/airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/api.py @@ -49,9 +49,6 @@ class Throttle: def ads_insights_throttle(self) -> Throttle: return self._ads_insights_throttle - def set_ads_insights_throttle(self, ads_insights_throttle): - self._ads_insights_throttle = ads_insights_throttle - @staticmethod def _parse_call_rate_header(headers): usage = 0 @@ -133,7 +130,6 @@ def _handle_call_rate_limit(self, response, params): sleep(sleep_time.total_seconds()) logger.warning("resetting session after sleep") api = MyFacebookAdsApi.init(access_token=MyFacebookAdsApi._access_token, crash_log=False) - api.set_ads_insights_throttle(self._ads_insights_throttle) FacebookAdsApi.set_default_api(api) def _update_insights_throttle_limit(self, response: FacebookResponse):