• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 27149762323
87%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2026 03:54PM UTC
Jobs 1
Files 265
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jun 2026 03:46PM UTC coverage: 86.631% (-0.04%) from 86.673%
27149762323

push

github

drmingdrmer
refactor: quorum: make QuorumSet id an associated type

# Summary

The `QuorumSet` trait carried an `ID` type parameter that every implementor
bound to a single concrete id type. This converts `ID` into an associated type
`Id`, so the "one quorum set, one id type" relationship lives in the trait
itself and the redundant parameter drops out of every bound that referenced it.
The trait is `pub(crate)`, so there is no public API or behavior change.

# Details

- The trait gains `type Id` and its methods reference `Self::Id`; bounds across
  the progress, proposer, and quorum layers change from `QuorumSet<ID>` to
  `QuorumSet<Id = ID>`. The standalone `ID` parameter was never instantiated
  differently from each type's own id, so an associated type models it without
  losing expressiveness.
- Every implementor pins `Id` to the concrete type it already used, so the
  resolved method signatures are unchanged. This is a purely type-level
  refactor with no logic touched.

1 of 1 new or added line in 1 file covered. (100.0%)

10 existing lines in 2 files now uncovered.

16485 of 19029 relevant lines covered (86.63%)

145456.6 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
86.96
-8.7% openraft/src/core/heartbeat/worker.rs
2
92.03
-0.22% openraft/src/core/raft_core.rs
Jobs
ID Job ID Ran Files Coverage
1 27149762323.1 08 Jun 2026 03:54PM UTC 265
86.63
GitHub Action Run
Source Files on build 27149762323
  • Tree
  • List 265
  • Changed 15
  • Source Changed 12
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27149762323
  • 6a1aabd5 on github
  • Prev Build on main (#27147503550)
  • Next Build on main (#27152208211)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc