revert the enqueue(root rule chain) method changes

This commit is contained in:
ShvaykaD 2020-10-08 13:19:49 +03:00 committed by Andrew Shvayka
parent a045be771b
commit d5bf25e2f3

View File

@ -121,7 +121,7 @@ class DefaultTbContext implements TbContext {
@Override
public void enqueue(TbMsg tbMsg, Runnable onSuccess, Consumer<Throwable> onFailure) {
TopicPartitionInfo tpi = resolvePartition(tbMsg);
TopicPartitionInfo tpi = mainCtx.resolve(ServiceType.TB_RULE_ENGINE, getTenantId(), tbMsg.getOriginator());
enqueue(tpi, tbMsg, onFailure, onSuccess);
}