mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
19 lines
389 B
Go
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()
|
|
}
|