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

prisma-risk / tsoracle / 26375115934
95%

Build:
DEFAULT BRANCH: main
Ran 24 May 2026 11:02PM UTC
Jobs 1
Files 76
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 10:57PM UTC coverage: 94.894% (+0.02%) from 94.873%
26375115934

push

github

web-flow
feat(client): expose Client::cached_leader() and drop the dead pool field (#329)

The `Client::pool: Arc<ChannelPool>` field was marked `#[allow(dead_code)]`
because the driver closure captures its own `Arc<ChannelPool>` clone, so the
field on `Client` was never read.

Rather than delete the field, make it live by exposing the pool's existing
leader-cache accessor as `Client::cached_leader() -> Option<String>`: a
read-only diagnostic surface for ops dashboards and integration tests that
want to assert a client has converged to the expected leader. It reflects the
cache as last updated by a completed RPC — it neither triggers nor waits on a
round-trip, and the TTL check is lazy (an expired entry reads as `None`).

This removes the misleading `allow(dead_code)` annotation from the public
`Client` type while buying observability for the same surface area.

Tests:
- in-crate unit test: a freshly connected client reports `None` before any RPC
- end-to-end test in tsoracle-tests: a successful GetTs over the real gRPC
  stack seats the serving endpoint as the cached leader

Closes #96

9 of 9 new or added lines in 1 file covered. (100.0%)

11429 of 12044 relevant lines covered (94.89%)

462059.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26375115934.1 24 May 2026 11:02PM UTC 76
94.89
GitHub Action Run
Source Files on build 26375115934
  • Tree
  • List 76
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26375115934
  • 98ec48a3 on github
  • Prev Build on main (#26374976709)
  • Next Build on main (#26375487257)
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