Skip to content

Commit

Permalink
优化告警逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Jul 1, 2022
1 parent dcad116 commit 7dcfabf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public Flux<Map<String, Object>> doSubscribe(EventBus eventBus) {
.accept()
//使用cache,多个定时收到相同的数据
//通过header来进行判断具体是哪个触发器触发的,应该还有更好的方式.
.cache(0);
.replay(0)
.refCount(1,Duration.ofMillis(10));

for (DeviceAlarmRule.Trigger trigger : rule.getTriggers()) {
//QL不存在,理论上不会发生
Expand Down

0 comments on commit 7dcfabf

Please sign in to comment.