Skip to content

Untangle layering: move FairnessConfig from connection to fairness module #429

@coderabbitai

Description

@coderabbitai

Problem

FairnessConfig is currently defined in the connection module (src/connection.rs:82) but is consumed by the fairness module (src/fairness.rs:10). This creates a layering violation where a lower-level module depends on configuration defined in a higher-level module.

Desired Outcome

Move FairnessConfig into src/fairness.rs:1 where it logically belongs, and pub use it from the connection module to maintain the existing public API surface and avoid breaking changes.

Context

Raised by @leynos in PR #424: #424
Comment: #424 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions