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

databendlabs / openraft / 18625023038
88%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2025 03:57AM UTC
Jobs 1
Files 199
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

17 Oct 2025 07:42AM UTC coverage: 91.384% (+0.06%) from 91.322%
18625023038

push

github

drdrxp
refactor: grpc-example: eliminate code duplication

Refactor raft-kv-memstore-grpc example to remove duplicate code
and improve maintainability. The main binary contained nearly
identical initialization logic to `app::start_raft_app()`,
and network operations repeated channel creation code three times.

Changes:
- Simplify `bin/main.rs` from 74 lines to 28 lines by delegating
  to `app::start_raft_app()` instead of duplicating initialization
- Extract `NetworkConnection::create_channel()` helper to eliminate
  duplicate channel creation across `append_entries()`, `vote()`,
  and `full_snapshot()` methods
- Extract `NetworkConnection::send_snapshot_chunks()` to separate
  chunking logic from `full_snapshot()` flow control
- Extract `StateMachineStore::generate_snapshot_id()` to isolate
  ID generation logic in `build_snapshot()`
- Simplify node mapping in `app_service::init()` by removing
  redundant field copies from identical structs

11783 of 12894 relevant lines covered (91.38%)

139272.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.79
-0.15% openraft/src/core/raft_core.rs
1
82.09
0.0% openraft/src/metrics/serde_instant.rs
Jobs
ID Job ID Ran Files Coverage
1 18625023038.1 19 Oct 2025 03:57AM UTC 199
91.38
GitHub Action Run
Source Files on build 18625023038
  • Tree
  • List 199
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18625023038
  • cd20c120 on github
  • Prev Build on main (#18549407454)
  • Next Build on main (#18625641622)
  • 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