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
Every `GetRateLimit()` was resulting in an async hit AND broadcast.  This does not follow the architecture described in architecture.md.
@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
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
2 checks passed
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.

None yet

2 participants