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
node: pair shutdown CancellationToken with its JoinHandle in one type #1853
The warming creditor and the receipt writer each return a (CancellationToken, JoinHandle<()>) pair that is then threaded through two different structs as independent fields (for the creditor: ChainHandlers and ShutdownHandles in crates/node/src/runtime/mod.rs).
Awaiting the handle without first cancelling the token hangs until every sink drops — and ClientHandler holds one. So correctness depends on two call sites roughly a hundred lines apart preserving an ordering that no type enforces. The shutdown code gets it right today.
A small WarmingCreditor { shutdown, handle } with a single shutdown().await would make the pairing structural, for both this and the receipt writer.
Activity