Skip to content

Commit

Permalink
chore: rename UpdateSensitiveLabelMap
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Jul 11, 2024
1 parent ba3f65c commit fe4d16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion utils/sensitive/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func InitSensitiveLabelMap() {
}
}

func UpdateAdminList(ctx context.Context) {
func UpdateSensitiveLabelMap(ctx context.Context) {
ticker := time.NewTicker(time.Hour)
for {
select {
Expand Down

0 comments on commit fe4d16d

Please sign in to comment.