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

databendlabs / openraft / 19492374016
88%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2025 06:46AM UTC
Jobs 1
Files 220
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

19 Nov 2025 06:35AM UTC coverage: 92.119% (-0.03%) from 92.147%
19492374016

push

github

drmingdrmer
feat: Add `with_leader()` conditional write to `WriteRequest`

Add `WriteRequest::with_leader()` method to support conditional writes
that only execute when the current leader matches the expected leader.
This prevents duplicate operations when retrying writes after network
partitions or leadership changes.

Example: With standard LeaderId (term-only):

```rust,ignore
let term = my_raft.as_leader()?.term();
raft.write(my_data)
    .with_leader(term)
    .await?;
```

13 of 13 new or added lines in 3 files covered. (100.0%)

13 existing lines in 4 files now uncovered.

13149 of 14274 relevant lines covered (92.12%)

149342.13 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
89.8
-0.14% openraft/src/core/raft_core.rs
1
83.33
0.0% openraft/src/metrics/serde_instant.rs
3
90.77
-4.62% openraft/src/raft/raft_inner.rs
8
88.31
-10.39% openraft/src/core/heartbeat/worker.rs
Jobs
ID Job ID Ran Files Coverage
1 19492374016.1 19 Nov 2025 06:46AM UTC 220
92.12
GitHub Action Run
Source Files on build 19492374016
  • Tree
  • List 220
  • Changed 12
  • Source Changed 6
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19492374016
  • f13f0eec on github
  • Prev Build on main (#19489036785)
  • Next Build on main (#19498256146)
  • 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