mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 09:59:55 +08:00
过期请求不处理
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user