style: run the formatter over the issue 14 changes

ruff format only; no semantic change.
This commit is contained in:
2026-08-20 00:44:21 -04:00
parent d9ceaecf20
commit 5a025b6e5d
5 changed files with 38 additions and 20 deletions
+1 -3
View File
@@ -327,9 +327,7 @@ class GatewaySettings:
backpressure=_load_backpressure(scope_u, env),
selector=_load_choice(env, f"{scope_u}__SELECTOR", _SELECTORS, "health_aware"),
quota_full=_load_choice(env, f"{scope_u}__QUOTA_FULL", _QUOTA_FULL, "wait"),
circuit_open=_load_choice(
env, f"{scope_u}__CIRCUIT_OPEN", _CIRCUIT_OPEN, "fail_fast"
),
circuit_open=_load_choice(env, f"{scope_u}__CIRCUIT_OPEN", _CIRCUIT_OPEN, "fail_fast"),
**_load_pgw(env),
)
+1 -3
View File
@@ -261,9 +261,7 @@ class SourceAdmission:
)
nap = self._nap(hint, clock)
if hint > 0:
logger.info(
"熔断开路等待 {:.1f}s 后重试(scope={}, 原因={})", nap, self._scope, reasons
)
logger.info("熔断开路等待 {:.1f}s 后重试(scope={}, 原因={})", nap, self._scope, reasons)
await self._sleep(nap)
def _nap(self, hint: float, clock: StallClock) -> float: