-
Notifications
You must be signed in to change notification settings - Fork 374
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: swap legacy faucet implementation #1614
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1614 +/- ##
==========================================
+ Coverage 44.81% 47.50% +2.69%
==========================================
Files 459 388 -71
Lines 67707 61375 -6332
==========================================
- Hits 30342 29159 -1183
+ Misses 34827 29774 -5053
+ Partials 2538 2442 -96 ☔ View full report in Codecov by Sentry. |
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.
Looks good! My only request would be to make subnetThrottler.Request
thread-safe.
Well aware some DB tests are failing because of a mod change, looking into it now 🙏 Converting the PR to draft until I sort it EDIT:
|
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.
A couple of minor comments were added.
This PR removes the old faucet implementation to utilize the new [gnolang/faucet](https://github.com/gnolang/faucet). Additional things done: - subnet throttler tidied, made thread safe - gnoweb faucet page fixed (invalid template values) Breaking change: - Gnoweb now interacts with the faucet differently than it did before (POST request instead of a form submission). <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
Description
This PR removes the old faucet implementation to utilize the new gnolang/faucet.
Additional things done:
Breaking change:
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description