Skip to content

Commit 7b5412b

Browse files
committed
fix lint
1 parent ca1eeab commit 7b5412b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/twinkle/server/utils/adapter_manager.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,10 @@ def _adapter_countdown_loop(self) -> None:
277277
# Has session: check session expiration and TTL
278278
session_expired = not self._is_session_alive(session_id)
279279
should_expire = session_expired or exceeded_ttl
280-
logger.debug(f'[AdapterManager] Adapter {adapter_name} session expiration check '
281-
f'(session_id={session_id}, session_alive={not session_expired}, should_expire={should_expire})')
280+
logger.debug(
281+
f'[AdapterManager] Adapter {adapter_name} session expiration check '
282+
f'(session_id={session_id}, session_alive={not session_expired}, should_expire={should_expire})' # noqa:E501
283+
)
282284
expiration_reasons = []
283285
if exceeded_ttl:
284286
expiration_reasons.append('ttl_exceeded')
@@ -289,8 +291,10 @@ def _adapter_countdown_loop(self) -> None:
289291
info['inactivity_counter'] = info.get('inactivity_counter', 0) + 1
290292
exceeded_inactivity = info['inactivity_counter'] > self._adapter_timeout
291293
should_expire = exceeded_ttl or exceeded_inactivity
292-
logger.debug(f'[AdapterManager] Adapter {adapter_name} inactivity check '
293-
f'(inactivity_counter={info["inactivity_counter"]}, timeout={self._adapter_timeout}, should_expire={should_expire})')
294+
logger.debug(
295+
f'[AdapterManager] Adapter {adapter_name} inactivity check '
296+
f'(inactivity_counter={info["inactivity_counter"]}, timeout={self._adapter_timeout}, should_expire={should_expire})' # noqa:E501
297+
)
294298
expiration_reasons = []
295299
if exceeded_ttl:
296300
expiration_reasons.append('ttl_exceeded')
@@ -308,7 +312,7 @@ def _adapter_countdown_loop(self) -> None:
308312
try:
309313
self._on_adapter_expired(adapter_name)
310314
logger.info(f'[AdapterManager] Adapter {adapter_name} expired '
311-
f"(reasons={','.join(expiration_reasons)}, session={session_id})")
315+
f"(reasons={','.join(expiration_reasons)}, session={session_id})")
312316
success = True
313317
except Exception as e:
314318
logger.warning(f'[AdapterManager] Error while expiring adapter {adapter_name}: {e}')

0 commit comments

Comments
 (0)