Welcome to mirror list, hosted at ThFree Co, Russian Federation.

check_hash_storage.go « job « web - github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 468aa2e085c32a45b73f8252a343f0b03d3a7827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()
}