diff --git a/controller/limits/limitAction.go b/controller/limits/limitAction.go index 0338ad97..32bcef72 100644 --- a/controller/limits/limitAction.go +++ b/controller/limits/limitAction.go @@ -32,6 +32,7 @@ func (a *limitAction) HandleAccount(acct *store.Account, _, _ int64, bwc store.B } ignoreBackends := ul.ignoreBackends(bwc) + logrus.Warnf("ignore backends excluding '%v': %v", bwc, ignoreBackends) for _, env := range envs { shrs, err := a.str.FindSharesForEnvironment(env.Id, trx) if err != nil { diff --git a/controller/limits/userLimits.go b/controller/limits/userLimits.go index bf40b2ca..92c1bab3 100644 --- a/controller/limits/userLimits.go +++ b/controller/limits/userLimits.go @@ -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 }