Add new hourly reset traffic (#3966)

* Add new hourly reset traffic

* fix
This commit is contained in:
Andrew Smirnov
2026-04-19 22:37:34 +03:00
committed by GitHub
parent 7466916e02
commit e986a133f8
17 changed files with 28 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ func (j *PeriodicTrafficResetJob) Run() {
resetCount := 0
for _, inbound := range inbounds {
resetInboundErr := j.inboundService.ResetAllTraffics()
resetInboundErr := j.inboundService.ResetInboundTraffic(inbound.Id)
if resetInboundErr != nil {
logger.Warning("Failed to reset traffic for inbound", inbound.Id, ":", resetInboundErr)
}