|
44 | 44 | from monitoring.monitorlib.fetch import Query, QueryError, QueryType, query_and_describe |
45 | 45 | from monitoring.monitorlib.fetch import scd as fetch |
46 | 46 | from monitoring.monitorlib.fetch.scd import FetchedSubscription, FetchedSubscriptions |
47 | | -from monitoring.monitorlib.infrastructure import UTMClientSession |
| 47 | +from monitoring.monitorlib.infrastructure import ( |
| 48 | + UTMClientSession, |
| 49 | + utm_client_session_factory, |
| 50 | +) |
48 | 51 | from monitoring.monitorlib.inspection import calling_function_name, fullname |
49 | 52 | from monitoring.monitorlib.mutate import scd as mutate |
50 | 53 | from monitoring.monitorlib.mutate.scd import MutatedSubscription |
@@ -129,7 +132,7 @@ def with_different_auth( |
129 | 132 | participant_id=self.participant_id, |
130 | 133 | user_participant_ids=self.user_participant_ids, |
131 | 134 | base_url=self.base_url, |
132 | | - client=UTMClientSession( |
| 135 | + client=utm_client_session_factory.get_session( |
133 | 136 | self.base_url, |
134 | 137 | auth_adapter=auth_adapter.adapter, |
135 | 138 | timeout_seconds=self.client.timeout_seconds, |
@@ -717,7 +720,7 @@ def __init__( |
717 | 720 | if "timeout_seconds" in specification |
718 | 721 | else None |
719 | 722 | ) |
720 | | - self._client = UTMClientSession( |
| 723 | + self._client = utm_client_session_factory.get_session( |
721 | 724 | self._specification.base_url, auth_adapter.adapter, timeout_seconds |
722 | 725 | ) |
723 | 726 |
|
|
0 commit comments