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

digidem / rpc-reflector / 6228807531
98%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2023 10:44PM UTC
Jobs 3
Files 11
Run time 2s
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

18 Sep 2023 10:44PM UTC coverage: 93.405% (+0.1%) from 93.297%
6228807531

push

github

web-flow
fix: always return same object from client prop (#18)

* fix: Can await returned client

calling `await client` was throwing an error. The returned client should
not be thenable, and should just return the same client

* fix: always return same object from client prop

There was a bug where every time you access a client property e.g.
`client.namespace` it would return a new Proxy object, which would lead
to unexpected behaviour when accessing a client object, e.g.
`client.namespace === client.namespace` would be false. It would also
cause a lot of garbage collection slowing things down (all those Proxy
objects need to be garbage collected).

This fix caches all the sub clients that are created when you access
properties. This could be seen as a memory leak because every time you
access a client property, the value is cached, but this is effectively
lazily building the API on the server side - as long as you don't call
huge numbers of non-existent properties on the client it won't take much
more memory than the server-side API.

196 of 219 branches covered (0.0%)

Branch coverage included in aggregate %.

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

328 of 342 relevant lines covered (95.91%)

647.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6228807531.1 18 Sep 2023 10:44PM UTC 0
93.4
GitHub Action Run
2 6228807531.2 18 Sep 2023 10:44PM UTC 0
93.4
GitHub Action Run
3 6228807531.3 18 Sep 2023 10:44PM UTC 0
93.4
GitHub Action Run
Source Files on build 6228807531
Detailed source file information is not available for this build.
  • Back to Repo
  • 8517f2f4 on github
  • Prev Build on main (#6225771312)
  • Next Build on main (#6233270959)
  • 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