Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions cmd/serve_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,8 @@ func serve(ctx context.Context) {
templatemailer.FromConfig(latestCfg, mrCache),
),

// Persist existing rate limiters.
//
// TODO(cstockton): we should consider updating these, if we
// rely on hot config reloads 100% then rate limiter changes
// won't be picked up.
limiterOpts,
// Update rate limiters based on new config.
api.NewLimiterOptions(latestCfg),
)
ah.Store(latestAPI)
}
Expand Down