mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
working out the hitches in the limit journals (#273)
This commit is contained in:
committed by
Kenneth Bingham
parent
98c221304e
commit
aa19fd408c
@ -114,6 +114,12 @@ func (a *Agent) enforce(u *metrics.Usage) error {
|
||||
if enforce, warning, err := a.checkAccountLimits(u, trx); err == nil {
|
||||
if enforce {
|
||||
logrus.Warn("enforcing account limit")
|
||||
|
||||
alje, err := a.str.FindLatestAccountLimitJournal(int(u.AccountId), trx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
} else if warning {
|
||||
logrus.Warn("reporting account warning")
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user