From 01c4fc75da9acf38f31753e18a5db68dd456f582 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 1 Aug 2022 11:37:53 +0200 Subject: [PATCH] Use new microtask function in api module --- api/authentication.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/authentication.go b/api/authentication.go index 86fe904..9060e29 100644 --- a/api/authentication.go +++ b/api/authentication.go @@ -433,8 +433,7 @@ func updateAPIKeys(_ context.Context, _ interface{}) error { } if hasExpiredKeys { - name := "api-key-cleanup" - module.StartLowPriorityMicroTask(&name, func(ctx context.Context) error { + module.StartLowPriorityMicroTask("api key cleanup", 0, func(ctx context.Context) error { if err := config.SetConfigOption(CfgAPIKeys, validAPIKeys); err != nil { log.Errorf("api: failed to remove expired API keys: %s", err) } else {