From 51852de92b14e1d42ef42d9f1c934272a30e4e1b Mon Sep 17 00:00:00 2001 From: lisonge Date: Mon, 9 Sep 2024 23:11:48 +0800 Subject: [PATCH] perf: matchDelayJob actionThread --- app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt b/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt index 8209f43..977bb13 100644 --- a/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt +++ b/app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt @@ -170,7 +170,7 @@ class GkdAbService : CompositionAbService({ for (rule in (activityRule.currentRules)) { // 规则数量有可能过多导致耗时过长 val statusCode = rule.status if (statusCode == RuleStatus.Status3 && rule.matchDelayJob == null) { - rule.matchDelayJob = scope.launch(queryThread) { + rule.matchDelayJob = scope.launch(actionThread) { delay(rule.matchDelay) rule.matchDelayJob = null newQueryTask()