• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 11277025862
69%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2024 03:24PM UTC
Jobs 1
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Oct 2024 03:18PM UTC coverage: 57.971% (+0.04%) from 57.933%
11277025862

push

github

web-flow
feat: preserve rate limiters in memory across configuration reloads (#1792)

The goal with this change is to preserve the rate limiters across reloads
with the least invasive changes possible. To do this I first added a
LimiterOptions structure to hold the current set of rate limiters. I
then identified each call of tollbooth.New and moved the construction of
the limiter without modifications to options.go. I assigned each limiter
a distinct field to be referenced during the API object creation.

Next I needed to add an optional parameter to the NewAPI methods so I
could store the new LimiterOptions onto the API object for reference
during route construction. To do this without breaking all existing
calls to NewAPI I used the options pattern. This makes the method accept
a parametric set of values implementing a common interface, so future
problems of similar nature can also be added as options.

I then replaced all the local anonymous limiter.Limiters made inline
within the API route construction with each corresponding newly added
field within the LimiterOptions struct.

114 of 120 new or added lines in 4 files covered. (95.0%)

9371 of 16165 relevant lines covered (57.97%)

56.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
0.0% cmd/serve_cmd.go
Jobs
ID Job ID Ran Files Coverage
1 11277025862.1 10 Oct 2024 03:24PM UTC 129
57.97
GitHub Action Run
Source Files on build 11277025862
  • Tree
  • List 129
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0a3968b0 on github
  • Prev Build on master (#11276778377)
  • Next Build on master (#11292798733)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc