Commit 7ab61b6d061801c5a24cd1d974ad382f174da1fe
1 parent
ce5e64e0
【代码优化】IoT: kafka 数据桥梁消息等待的最大时间调整为 10 秒
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/rule/action/databridge/IotKafkaMQDataBridgeExecute.java
| ... | ... | @@ -26,7 +26,7 @@ import java.util.concurrent.TimeUnit; |
| 26 | 26 | public class IotKafkaMQDataBridgeExecute extends |
| 27 | 27 | AbstractCacheableDataBridgeExecute<IotDataBridgeDO.KafkaMQConfig, KafkaTemplate<String, String>> { |
| 28 | 28 | |
| 29 | - private static final Duration SEND_TIMEOUT = Duration.ofMillis(10); | |
| 29 | + private static final Duration SEND_TIMEOUT = Duration.ofMillis(10000); // 10 秒超时时间 | |
| 30 | 30 | |
| 31 | 31 | @Override |
| 32 | 32 | public Integer getType() { | ... | ... |