Skip to content

Fix directory metrics#1173

Merged
spacebear21 merged 2 commits intopayjoin:masterfrom
spacebear21:fix-directory-metrics
Oct 23, 2025
Merged

Fix directory metrics#1173
spacebear21 merged 2 commits intopayjoin:masterfrom
spacebear21:fix-directory-metrics

Conversation

@spacebear21
Copy link
Collaborator

Pull Request Checklist

Please confirm the following before requesting review:

The metrics server was previously blocking, which prevented the
directory from ever being served. This spawns the metrics server in a
background task, allowing the main server to continue starting.
Increment connection count when `serve_connection` is called. Previously
this was only done in `serve_tls` which doesn't record production usage.
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 18760791093

Details

  • 0 of 9 (0.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 83.736%

Changes Missing Coverage Covered Lines Changed/Added Lines %
payjoin-directory/src/lib.rs 0 1 0.0%
payjoin-directory/src/main.rs 0 8 0.0%
Files with Coverage Reduction New Missed Lines %
payjoin-directory/src/main.rs 1 0.0%
Totals Coverage Status
Change from base Build 18757187367: -0.06%
Covered Lines: 8979
Relevant Lines: 10723

💛 - Coveralls

@DanGould
Copy link
Contributor

I assume the second commit isn't duplicate per se, it's just a different code path. Might you confirm?

@spacebear21
Copy link
Collaborator Author

yes, serve_tls is used in test utils and for local testing, vs. serve_tcp which is used in production. Possibly serve_tls could be refactored to use serve_connection internally.

@spacebear21 spacebear21 requested a review from zealsham October 23, 2025 20:27
Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c348a3f

@spacebear21 spacebear21 merged commit 84fdf03 into payjoin:master Oct 23, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants