-
Notifications
You must be signed in to change notification settings - Fork 427
Add a trivial helper to LSPS5's WebhookNotification
#4295
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
base: main
Are you sure you want to change the base?
Add a trivial helper to LSPS5's WebhookNotification
#4295
Conversation
`LSPS5ServiceEvent::SendWebhookNotification`'s docs say to send the `WebhookNotification` as the HTTP request body "as JSON", which is great, but it leaves the dev to figure out how to do that. Its nice to have a helper to do that, which is trivial so we provide it here.
|
👋 Thanks for assigning @tnull as a reviewer! |
tnull
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one nit.
| Self { method: WebhookNotificationMethod::LSPS5OnionMessageIncoming } | ||
| } | ||
|
|
||
| /// Encode's this notification into JSON which can be sent as the body of an HTTP request to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Encode's this notification into JSON which can be sent as the body of an HTTP request to | |
| /// Encodes this notification into JSON which can be sent as the body of an HTTP request to |
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4295 +/- ##
==========================================
- Coverage 89.38% 86.54% -2.84%
==========================================
Files 180 158 -22
Lines 139834 101824 -38010
Branches 139834 101824 -38010
==========================================
- Hits 124985 88128 -36857
+ Misses 12262 11278 -984
+ Partials 2587 2418 -169
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
LSPS5ServiceEvent::SendWebhookNotification's docs say to send theWebhookNotificationas the HTTP request body "as JSON", which is great, but it leaves the dev to figure out how to do that. Its nice to have a helper to do that, which is trivial so we provide it here.