From 6ced549deaecb42b9bb93ea9efcb4c1bbaabe8a4 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sat, 20 Sep 2025 09:35:50 +0200 Subject: docs: add comments for all functions --- web/job/check_hash_storage.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/job/check_hash_storage.go') diff --git a/web/job/check_hash_storage.go b/web/job/check_hash_storage.go index 5f826d63..2112079e 100644 --- a/web/job/check_hash_storage.go +++ b/web/job/check_hash_storage.go @@ -4,15 +4,17 @@ import ( "github.com/mhsanaei/3x-ui/v2/web/service" ) +// CheckHashStorageJob periodically cleans up expired hash entries from the Telegram bot's hash storage. type CheckHashStorageJob struct { tgbotService service.Tgbot } +// NewCheckHashStorageJob creates a new hash storage cleanup job instance. func NewCheckHashStorageJob() *CheckHashStorageJob { return new(CheckHashStorageJob) } -// Here Run is an interface method of the Job interface +// Run removes expired hash entries from the Telegram bot's hash storage. func (j *CheckHashStorageJob) Run() { // Remove expired hashes from storage j.tgbotService.GetHashStorage().RemoveExpiredHashes() -- cgit v1.2.3