Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Security update golang.org/x/net and Tidy code #192

Merged
merged 10 commits into from
Oct 13, 2023

Conversation

Baliedge
Copy link
Contributor

@Baliedge Baliedge commented Oct 11, 2023

  • Improve TestGlobalRateLimits that was not checking for exact behavior.
    • Required moving metric variables into GlobalManager fields so that tests would not read from global metric variables that were impacted by other tests.
  • Tidy up code.
  • Update default for GlobalSyncWait from 500ms to 100ms
    • This applies to both runAsyncHits() and runBroadcasts(). When a ratelimit is hit, it could take up to 2x this setting before it's replicated to each peer.

@Baliedge Baliedge requested a review from a team October 11, 2023 14:27
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from 072742b to b2b697d Compare October 11, 2023 14:35
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from c6e0991 to b3f5a18 Compare October 11, 2023 14:55
Every `GetRateLimit()` was resulting in an async hit AND broadcast.  This does not follow the architecture described in architecture.md.
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from 7ca2f0f to 865ef99 Compare October 11, 2023 20:43
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from f9aeb3f to 6108420 Compare October 11, 2023 20:57
@Baliedge Baliedge changed the title Fix global rates sometimes checked with getLocalRateLimit(). Tidy code Oct 11, 2023
@Baliedge Baliedge marked this pull request as ready for review October 11, 2023 22:35
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from 3238249 to 4b231d4 Compare October 12, 2023 19:41
@Baliedge Baliedge force-pushed the Baliedge/PIP-2675-global-fix branch from 4b231d4 to 19ea39c Compare October 12, 2023 20:09
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
- [Commits](golang/net@v0.10.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@Baliedge Baliedge changed the title Tidy code Security update golang.org/x/net and Tidy code Oct 13, 2023
@Baliedge Baliedge merged commit 965892e into master Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants