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

prisma-risk / tsoracle / 26353705474
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 06:15AM UTC
Jobs 1
Files 74
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

24 May 2026 06:11AM UTC coverage: 94.754% (+0.02%) from 94.735%
26353705474

push

github

web-flow
fix(client): single-flight ChannelPool dials via per-endpoint OnceCell (#286)

ChannelPool::client checked the cache without the lock, dialed, then
re-locked to insert. Two concurrent first-callers to the same endpoint
both missed the cache and both ran connect(); the second insert clobbered
the first, wasting a full connect's latency on the orphaned channel.
The driver currently funnels RPCs serially so this is unreachable today,
but it activates on any future concurrency change.

Replace Mutex<HashMap<String, Channel>> with
Mutex<HashMap<String, Arc<OnceCell<Channel>>>>. client() now looks up or
inserts the per-endpoint cell under the parking_lot mutex (HashMap ops
only, no await), drops the lock, then dials through
cell.get_or_try_init(..). Concurrent first-callers to one endpoint share
the cell and run a single connect(); distinct endpoints still dial in
parallel. A failed dial leaves the cell uninitialized so the next caller
retries rather than caching a poisoned error. The connect.duration and
failure metrics move into the init closure so they fire once per real
dial.

65 of 66 new or added lines in 1 file covered. (98.48%)

10675 of 11266 relevant lines covered (94.75%)

507452.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.05
0.39% crates/tsoracle-client/src/leader_resolved.rs
Jobs
ID Job ID Ran Files Coverage
1 26353705474.1 24 May 2026 06:15AM UTC 74
94.75
GitHub Action Run
Source Files on build 26353705474
  • Tree
  • List 74
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26353705474
  • 3d34a9b1 on github
  • Prev Build on main (#26353442274)
  • Next Build on main (#26354279473)
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