-
Notifications
You must be signed in to change notification settings - Fork 0
Replace checkPaymentChannelBalance panic with error #11
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
Conversation
Basic Nitro Integration (Version 0)
geoknee
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.
👍
cmd/booster-http/server.go
Outdated
| writeError(w, r, http.StatusInternalServerError, err.Error()) | ||
| return | ||
| } | ||
|
|
||
| if !hasPaid { | ||
| webError(w, fmt.Errorf("payment of %d required", expectedPaymentAmount.Uint64()), http.StatusPaymentRequired) |
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.
What's the difference between writeError and webError?
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.
It looks like webError sets some additional headers related to CORS. I am changing this webError to writeError to conform to the rest of the error handling within this method.
c735b03 to
559eaa9
Compare
|
@bitwiseguy the base branch was rebased, which is giving you the conflicts. Seeing as you are out and that's my fault, I'm happy to sort it out? |
|
resolves #9