You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gateway: a capability's spend on /_status lags until each pull through it ends #2640
Today. The gateway's /_status takes a capability's spend from the buyer-pool store (crates/cli/src/commands/gateway/status.rs, worker.rs), which a pull writes when it ends. decdn dashboard shows that as "Spent of cap". During a long pull, and right after a client drops one, the cell shows the spend before that pull: on testnet, 0.000006 of 0.05 USDC while a 200 MB pull through the capability had paid about 0.002 USDC. ADR appendix-gateway § State says the snapshot lags, but the page gives no hint of it.
Ask. Either:
add each pull in flight's paid-so-far to /_status (the drive's ledgers know it) and show the capability's spend including it; or
keep the store value and label it on the page as "settled", with the pulls in flight named beside it.
Done when
The page's spend for a capability does not read as final while a pull through it runs.
Activity
fix(gateway): pull a non-manifest once, reuse verified sizes, count l…