mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 11:49:51 +02:00
working out the hitches in the limit journals (#273)
This commit is contained in:
@@ -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