过期请求不处理

This commit is contained in:
三丙
2024-11-01 10:24:36 +08:00
parent bcaf4b94ab
commit e7ee6be487

View File

@@ -141,6 +141,14 @@ public class ProtocolUplinkConsumerService extends AbstractConsumerService imple
Callback callback = new PackCallback<>(id, ctx);
// 过期请求不处理
if (TracerContextUtil.getCurrentTracer().getTracerTs() < (System.currentTimeMillis() - packProcessingTimeout)) {
callback.onSuccess();
return;
}
try {
UplinkQueueMessage uplinkQueueMsg = msg.getValue();