Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/signer last seen #38

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Feat/signer last seen #38

merged 4 commits into from
Nov 5, 2024

Conversation

zone117x
Copy link
Member

@zone117x zone117x commented Nov 5, 2024

Closes #24
Closes #23

Copy link

github-actions bot commented Nov 5, 2024

Vercel deployment URL: https://signer-metrics-hcxx0jva3-hirosystems.vercel.app 🚀

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/api/init.ts 77.77% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

fastify.addHook('onSend', async (_req, reply, payload) => {
if ((reply.getHeader('Content-Type') as string).startsWith('application/json')) {
// Pretty-print with indentation
return JSON.stringify(JSON.parse(payload as string), null, 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

I was trying to figure out how to optimize this using fast-json-stringify from fastify, but it doesn't look like it's built-in and would be a bit more complicated to maintain, to avoid the second stringify, as well as the parse.

Copy link
Member Author

Choose a reason for hiding this comment

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

Same. I'm just leaving it here for now until we have a better view than the raw json in a web browser :D

@zone117x zone117x merged commit bcc0b16 into main Nov 5, 2024
5 checks passed
@zone117x zone117x deleted the feat/signer-last-seen branch November 5, 2024 15:43
@blockstack-devops
Copy link

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
3 participants