Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pkg/settings/limits/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (u *updater[N]) updateLoop(cre contexts.CRE) {
var c <-chan time.Time
if u.subFn != nil {
updates, cancelSub = u.subFn(contexts.WithCRE(ctx, cre))
defer cancelSub()
defer func() { cancelSub() }() // extra func wrapper is required to ensure we get the final cancelSub value
// opt: poll now to initialize
} else {
t := services.TickerConfig{}.NewTicker(pollPeriod)
Expand Down
Loading