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

DanGould / rust-payjoin / 39767406840
88%
master: 87%

Build:
Build:
LAST BUILD BRANCH: request-handler-plain-data
DEFAULT BRANCH: master
Ran 22 Oct 2026 11:06AM UTC
Jobs 1
Files 67
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

22 Oct 2026 10:40AM UTC coverage: 87.633%. First build
39767406840

push

github

DanGould
Return the key fetch order as plain data

fetch_ohttp_keys_with took the caller's HTTP fetch as a closure and
drove the loop itself, and the FFI wrapped that in an OhttpKeysFetcher
foreign trait, a result record and two error types. A binding app that
routes its traffic through Tor or a proxy had to adapt its client to
that trait to keep the key fetch on the same path as its posts.

RequestHandler::key_fetch_order returns the relay and directory pairs
to try, each directory over every relay that is not itself before the
next directory. The caller tries them in order with its own client and
pins the first directory that returns keys. Because the pairs are
grouped by directory, a caller that can tell a failure is the
directory's skips to the next directory, and one that can't retries
the directory over its other relays. The library loop could only do
the latter.

payjoin-cli loops over the order with payjoin::io. It can't yet tell
directory errors from relay errors, so it tries every pair. The FFI
exports key_fetch_order and a KeyFetch record, and drops the fetcher
trait, FetchedOhttpKeys, DirectoryFetchError and RequestHandlerError.

30 of 41 new or added lines in 2 files covered. (73.17%)

15760 of 17984 relevant lines covered (87.63%)

327.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
68.97
payjoin-cli/src/app/v2/ohttp.rs
Jobs
ID Job ID Ran Files Coverage
1 39767406840.1 22 Oct 2026 11:06AM UTC 67
87.63
GitHub Action Run
Source Files on build 39767406840
  • Tree
  • List 67
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39767406840
  • 10de6f62 on github
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc