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

databendlabs / openraft / 20536877331
88%

Build:
DEFAULT BRANCH: main
Ran 27 Dec 2025 08:51AM UTC
Jobs 1
Files 253
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

27 Dec 2025 08:36AM UTC coverage: 88.522% (+0.07%) from 88.455%
20536877331

push

github

drmingdrmer
refactor: move snapshot streaming state from `RaftInner` to `Extensions`

Move the `snapshot` field from `RaftInner` to the `Extensions` type-map,
storing it as a `StreamingState<C>` wrapper. This decouples the snapshot
streaming state from the core Raft structure and demonstrates the
extensions pattern for internal use.

Changes:
- Add `StreamingState<C>` wrapper type in `snapshot_transport.rs`
- Add `get_or_insert_with()` and `get_or_default()` methods to `Extensions`
- Remove `snapshot` field from `RaftInner`
- Update `install_snapshot()` to lazily create `StreamingState` via extensions

42 of 42 new or added lines in 2 files covered. (100.0%)

4 existing lines in 2 files now uncovered.

15718 of 17756 relevant lines covered (88.52%)

158966.32 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
3
95.65
-3.26% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 20536877331.1 27 Dec 2025 08:51AM UTC 253
88.52
GitHub Action Run
Source Files on build 20536877331
  • Tree
  • List 253
  • Changed 10
  • Source Changed 4
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20536877331
  • a534537f on github
  • Prev Build on main (#20536767782)
  • Next Build on main (#20537272033)
  • 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