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
refactor(node): split the 2,300-line ClientHandler impl into delivery/voucher/window submodules + a deps struct #1254
crates/node/src/handlers/client.rs (3,526 lines) concentrates paid delivery in one ~2,300-line impl ClientHandler block (client.rs:689-3005). It composes the shared primitives correctly (dispatch limiter, ThreeLayerRateLimiter, LeechGovernor via leech_admit/leech_record_pulled at client.rs:1201/1209) — there's no duplication to delete — but the impl mixes several distinct concerns:
Extract handlers/client/{delivery,voucher,window}.rs submodules (support types like ChannelDeliveryState, WarmVerdict, ServeRejectReason move with their consumers).
No lines saved — this is organization and reviewability only.
Risk
Medium — the methods share &self state threaded through the mega-impl, so the module boundaries need care; behavior-preserving moves only, existing tests (client.rs:3126-3526) pin the seams.
Activity
refactor(node): decompose the ClientHandler mega-impl + construction-…
fix(cache,node): correct the sketch collision math, close the deps-wi…
fix(cache,node): correct the sketch collision math, close the deps-wi…
fix(node,cache): correct the sharding docs, guard the sketch floor (#…