fixed--设备刷新超时时间设置为3s

pull/367/head
chenjialing 2022-03-03 15:10:30 +08:00
parent 298d104fec
commit 368c9de9c4
1 changed files with 2 additions and 2 deletions

View File

@ -153,8 +153,8 @@ public class DeviceQuery {
Device device = storager.queryVideoDevice(deviceId);
String key = DeferredResultHolder.CALLBACK_CMD_CATALOG + deviceId;
String uuid = UUID.randomUUID().toString();
// 默认超时时间为30分
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(30*60*1000L);
// 默认超时时间为3
DeferredResult<ResponseEntity<Device>> result = new DeferredResult<ResponseEntity<Device>>(3000L);
result.onTimeout(()->{
logger.warn("设备[{}]通道信息同步超时", deviceId);
// 释放rtpserver