mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
perf: matchDelayJob actionThread
This commit is contained in:
parent
4597a2002d
commit
51852de92b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user