Commit dfd601e3676f941ead022d399e46edb3decaf87c

Authored by Andrii Shvaika
1 parent abac3098

Persistent RPCs are sent to a correct rule chain and queue

@@ -63,7 +63,7 @@ public class TbRpcService { @@ -63,7 +63,7 @@ public class TbRpcService {
63 63
64 private void pushRpcMsgToRuleEngine(TenantId tenantId, Rpc rpc) { 64 private void pushRpcMsgToRuleEngine(TenantId tenantId, Rpc rpc) {
65 TbMsg msg = TbMsg.newMsg("RPC_" + rpc.getStatus().name(), rpc.getDeviceId(), TbMsgMetaData.EMPTY, JacksonUtil.toString(rpc)); 65 TbMsg msg = TbMsg.newMsg("RPC_" + rpc.getStatus().name(), rpc.getDeviceId(), TbMsgMetaData.EMPTY, JacksonUtil.toString(rpc));
66 - tbClusterService.pushMsgToRuleEngine(tenantId, rpc.getId(), msg, null); 66 + tbClusterService.pushMsgToRuleEngine(tenantId, rpc.getDeviceId(), msg, null);
67 } 67 }
68 68
69 public Rpc findRpcById(TenantId tenantId, RpcId rpcId) { 69 public Rpc findRpcById(TenantId tenantId, RpcId rpcId) {