yetone
bf25842714
gateway: a provider's own cap on how long a key that keeps failing rests ( #2008 , Gaudi-XIX)
...
A key that keeps failing doubles its rest from a minute up to 10 minutes,
and one rate limited again as soon as its rest is over up to 30; both
caps were fixed, so a free key down for hours was asked again every 10
or 30 minutes all the while.
`magpie provider rest-cap <id> 4h` (Provider.RestCap, minutes, at most
MaxQuotaRest, 8 days) sets where both ladders stop for that provider's
keys and accounts (RestCapOr in restAfterMarked's default branch and in
rateRest); `default` gives back the gateway's own. A time the vendor names
still stands over it. Unset, nothing differs. It is kept by the editor's
save, the account copy and normalize.
Run: go test -tags nogui ./internal/provider ./internal/gateway
./internal/cli ./internal/gui (temp HOME). Broken by hand: both ladders
back on the fixed caps fail TestOwnRestCap (rate-long #6 : 30m, want 32m);
the GUI keep removed fails TestSaveKeepsQuotaResetAt. Not tried against a
real vendor's outage.
2026-10-14 05:22:40 +08:00
..
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 14:35:08 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 23:30:17 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 15:52:17 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 16:19:13 +08:00
2026-10-13 07:25:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 17:05:59 +08:00
2026-10-13 17:15:51 +08:00
2026-10-13 05:34:13 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 15:25:06 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 18:16:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:10:30 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 23:30:17 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:02:58 +08:00
2026-10-13 23:30:17 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 05:34:13 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 18:16:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:02:58 +08:00
2026-10-13 18:01:20 +08:00
2026-10-13 18:01:20 +08:00
2026-10-12 23:45:06 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 05:22:40 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 02:56:34 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 17:32:39 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 05:22:40 +08:00
2026-10-12 22:42:46 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 14:41:10 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:02:09 +08:00
2026-10-13 13:02:09 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 04:31:07 +08:00
2026-10-13 04:31:07 +08:00
2026-10-13 09:56:06 +08:00
2026-10-13 09:56:06 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 15:52:17 +08:00
2026-10-12 22:55:22 +08:00