From fe4d16da166073f151acb4eda40f71753f0b88df Mon Sep 17 00:00:00 2001 From: polaris <2673986789@qq.com> Date: Thu, 11 Jul 2024 15:33:08 +0800 Subject: [PATCH] chore: rename UpdateSensitiveLabelMap --- bootstrap/init.go | 2 +- utils/sensitive/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/init.go b/bootstrap/init.go index 3f01deb..dfba5f2 100644 --- a/bootstrap/init.go +++ b/bootstrap/init.go @@ -54,6 +54,6 @@ func startTasks() context.CancelFunc { go hole.PurgeHole(ctx) go message.PurgeMessage() // go models.UpdateAdminList(ctx) - go sensitive.UpdateAdminList(ctx) + go sensitive.UpdateSensitiveLabelMap(ctx) return cancel } diff --git a/utils/sensitive/api.go b/utils/sensitive/api.go index 36358ab..ece7b4f 100644 --- a/utils/sensitive/api.go +++ b/utils/sensitive/api.go @@ -394,7 +394,7 @@ func InitSensitiveLabelMap() { } } -func UpdateAdminList(ctx context.Context) { +func UpdateSensitiveLabelMap(ctx context.Context) { ticker := time.NewTicker(time.Hour) for { select {