Commit a193bf16134b7687a5773e5f141c62443c884cb4
1 parent
0f0d521d
Avoid creating new message in get telemetry node
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -86,7 +86,7 @@ public class TbGetTelemetryNode implements TbNode { |
86 | 86 | ListenableFuture<List<TsKvEntry>> list = ctx.getTimeseriesService().findAll(ctx.getTenantId(), msg.getOriginator(), queries); |
87 | 87 | DonAsynchron.withCallback(list, data -> { |
88 | 88 | process(data, msg); |
89 | - TbMsg newMsg = ctx.newMsg(msg.getType(), msg.getOriginator(), msg.getMetaData(), msg.getData()); | |
89 | + TbMsg newMsg = ctx.transformMsg(msg, msg.getType(), msg.getOriginator(), msg.getMetaData(), msg.getData()); | |
90 | 90 | ctx.tellNext(newMsg, SUCCESS); |
91 | 91 | }, error -> ctx.tellFailure(msg, error), ctx.getDbCallbackExecutor()); |
92 | 92 | } catch (Exception e) { | ... | ... |