mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
fix for not correctly detecting that warnings are already applied (#685)
This commit is contained in:
parent
ce134180c7
commit
ee0627b7a5
@ -443,7 +443,7 @@ func (a *Agent) isBandwidthClassLimitedForAccount(acctId int, bwc store.Bandwidt
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if je.Action == store.LimitLimitAction {
|
||||
if je.Action == bwc.GetLimitAction() {
|
||||
logrus.Debugf("account '#%d' over bandwidth for global bandwidth class '%v'", acctId, bwc)
|
||||
return je, nil
|
||||
}
|
||||
@ -456,7 +456,7 @@ func (a *Agent) isBandwidthClassLimitedForAccount(acctId int, bwc store.Bandwidt
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if je.Action == store.LimitLimitAction {
|
||||
if je.Action == bwc.GetLimitAction() {
|
||||
logrus.Debugf("account '#%d' over bandwidth for limit class '%v'", acctId, bwc)
|
||||
return je, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user