mirror of
https://github.com/openziti/zrok.git
synced 2025-08-13 17:57:37 +02:00
add trx to action interfaces; implement limit and relax for share (#276)
This commit is contained in:
committed by
Kenneth Bingham
parent
bf48ddec76
commit
427ef7e3f9
@ -1,6 +1,7 @@
|
||||
package limits
|
||||
|
||||
import (
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/openziti/edge/rest_management_api_client"
|
||||
"github.com/openziti/zrok/controller/store"
|
||||
"github.com/sirupsen/logrus"
|
||||
@ -15,7 +16,7 @@ func newShareWarningAction(str *store.Store, edge *rest_management_api_client.Zi
|
||||
return &shareWarningAction{str, edge}
|
||||
}
|
||||
|
||||
func (a *shareWarningAction) HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod) error {
|
||||
func (a *shareWarningAction) HandleShare(s *store.Share, rxBytes, txBytes int64, limit *BandwidthPerPeriod, trx *sqlx.Tx) error {
|
||||
logrus.Infof("warning '%v'", s.Token)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user