Skip to content

Commit

Permalink
perf: matchDelayJob actionThread
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Sep 9, 2024
1 parent 4597a20 commit 51852de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 51852de

Please sign in to comment.