ignore scoped backends when unscoped limit class in limit action (#606)

This commit is contained in:
Michael Quigley
2024-06-07 12:01:11 -04:00
parent aee973379c
commit efd16c2760
2 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,12 @@ func (ul *userLimits) ignoreBackends(bwc store.BandwidthClass) map[sdk.BackendMo
}
}
return ignoreBackends
} else {
ignoreBackends := make(map[sdk.BackendMode]bool)
for backendMode := range ul.scopes {
ignoreBackends[backendMode] = true
}
return ignoreBackends
}
return nil
}