3x-ui/web/job/check_hash_storage.go
civisrom b7c471e8f2 new file: xray/log_writer.go
new file:   xray/process.go
	new file:   xray/traffic.go
2025-02-04 14:38:53 +03:00

19 lines
389 B
Go

package job
import (
"x-ui/web/service"
)
type CheckHashStorageJob struct {
tgbotService service.Tgbot
}
func NewCheckHashStorageJob() *CheckHashStorageJob {
return new(CheckHashStorageJob)
}
// Here Run is an interface method of the Job interface
func (j *CheckHashStorageJob) Run() {
// Remove expired hashes from storage
j.tgbotService.GetHashStorage().RemoveExpiredHashes()
}