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: gate the Direct*Sink test impls behind a test-support feature #1852
DirectWarmingCreditSink and DirectReceiptSink are both pub, #[doc(hidden)] types whose own docs say they deliberately violate their trait's non-blocking contract (they take the ledger / log lock on the caller's thread) and must never be wired onto the serve path. They are pub only because the cross-crate integration tests in tests/ cannot see #[cfg(test)] items.
That leaves a contract-violating implementation linkable into a production build, guarded by a doc sentence.
Gating both behind a test-support feature would make it a build-time property instead. Worth doing for both at once — half-applied it would be worse than the current consistent state.
Pre-existing pattern, surfaced by the #1803 review. Note #1803's follow-up already removed the related contradiction where ClientHandlerDeps::new defaulted warming_credit to DirectWarmingCreditSink; it now defaults to NoopWarmingCreditSink. receipt_sink has no default (it is a required constructor parameter), so no equivalent fix is needed there.
Activity