File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,15 @@ def prepare_bridge(self) -> None:
116
116
if self .config ['bridge.limits.enable_activity_tracking' ] is not False :
117
117
self .periodic_sync_task = self .loop .create_task (self ._loop_active_puppet_metric ())
118
118
119
- if self .config ['metrics.enabled' ]:
120
- self .as_connection_metric_task = self .loop .create_task (self ._loop_check_as_connection_pool ())
121
-
122
119
if self .config .get ('telegram.liveness_timeout' , 0 ) >= 1 :
123
120
self .as_bridge_liveness_task = self .loop .create_task (self ._loop_check_bridge_liveness ())
124
121
125
122
async def start (self ) -> None :
126
123
await super ().start ()
127
124
125
+ if self .config ['metrics.enabled' ]:
126
+ self .as_connection_metric_task = self .loop .create_task (self ._loop_check_as_connection_pool ())
127
+
128
128
if self .bot :
129
129
try :
130
130
await self .bot .start ()
@@ -225,7 +225,7 @@ async def _loop_check_as_connection_pool(self) -> None:
225
225
while True :
226
226
try :
227
227
# a horrible reach into Appservice's internal API
228
- connector = self .az ._http_session .connector
228
+ connector = self .az .http_session () .connector
229
229
limit = connector .limit
230
230
# a horrible, horrible reach into asyncio.TCPConnector's internal API
231
231
# inspired by its (also private) _available_connections()
You can’t perform that action at this time.
0 commit comments