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

chore: optimize keysend/multikeysend balance checks #454

Merged
merged 5 commits into from
Nov 24, 2023

Conversation

im-adithya
Copy link
Member

Description

Moves CheckPaymentAllowed check one level up so that it doesn't add much load by triggering everytime during multikeysend checks

@im-adithya im-adithya requested a review from kiwiidb November 24, 2023 10:45
return resp
}
if err != nil {
errResp := responses.GeneralServerError
Copy link
Contributor

Choose a reason for hiding this comment

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

Check the error first, and log the error and just return a GeneralServerError here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@kiwiidb kiwiidb merged commit 6db26d4 into main Nov 24, 2023
@kiwiidb kiwiidb deleted the task-optimize-keysend-check branch November 24, 2023 13:12
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.

2 participants