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

cameri / nostream / 46268687258
81%

Build:
DEFAULT BRANCH: main
Ran 29 Nov 2026 01:44PM UTC
Jobs 2
Files 353
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

29 Nov 2026 01:40PM UTC coverage: 80.693% (+0.05%) from 80.641%
46268687258

push

github

web-flow
fix(peering): bound the buyer invoice queue (#1270)

<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->


## Problem

`subscribeToInvoices` appends every kind-402 invoice event to a promise
chain.
If the wallet is slow, the chain grows without bound. Unlike the live
feed, the invoice path had no event or byte limit and never closed the
connection.

## Fix

- Cap the invoice queue at 100 events and 2 MiB.
- Close and reconnect when either limit is exceeded.
- Decrement counters in `finally`, including rejected handlers.
- Reset the queue and chain on stop and reconnect.
- Race the initial invoice wait against `waitForClose()` so a closed
socket cannot hang the worker on a slow wallet.

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
Closes #1230
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Non-functional change (docs, style, minor refactor)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [ ] My code follows the code st... (continued)

6358 of 8499 branches covered (74.81%)

Branch coverage included in aggregate %.

66 of 71 new or added lines in 1 file covered. (92.96%)

12884 of 15347 relevant lines covered (83.95%)

707.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
82.46
1.84% src/app/peering-sync-worker.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 46268687258.1 29 Nov 2026 01:44PM UTC 353
36.44
GitHub Action Run
2 Unit - 46268687258.2 29 Nov 2026 01:45PM UTC 353
78.71
GitHub Action Run
Source Files on build 46268687258
  • Tree
  • List 353
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46268687258
  • b77a457f on github
  • Prev Build on main (#46198618658)
  • Next Build on main (#46274466430)
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