Browse Source

DefaultTbCoreToTransportService: fire "onSuccess send" when skipping message without nodeId

pull/5357/head
Sergey Matvienko 5 years ago
parent
commit
d25c605ac6
  1. 3
      application/src/main/java/org/thingsboard/server/service/transport/DefaultTbCoreToTransportService.java

3
application/src/main/java/org/thingsboard/server/service/transport/DefaultTbCoreToTransportService.java

@ -56,6 +56,9 @@ public class DefaultTbCoreToTransportService implements TbCoreToTransportService
public void process(String nodeId, ToTransportMsg msg, Runnable onSuccess, Consumer<Throwable> onFailure) { public void process(String nodeId, ToTransportMsg msg, Runnable onSuccess, Consumer<Throwable> onFailure) {
if (nodeId == null || nodeId.isEmpty()){ if (nodeId == null || nodeId.isEmpty()){
log.trace("process: skipping message without nodeId [{}], (ToTransportMsg) msg [{}]", nodeId, msg); log.trace("process: skipping message without nodeId [{}], (ToTransportMsg) msg [{}]", nodeId, msg);
if (onSuccess != null) {
onSuccess.run();
}
return; return;
} }
TopicPartitionInfo tpi = partitionService.getNotificationsTopic(ServiceType.TB_TRANSPORT, nodeId); TopicPartitionInfo tpi = partitionService.getNotificationsTopic(ServiceType.TB_TRANSPORT, nodeId);

Loading…
Cancel
Save