ARTEMIS-2985 Ordered Executor not needed on Actor

The Actor is already an ordered executor. No need to create one here.
This commit is contained in:
Clebert Suconic 2020-11-20 10:42:05 -05:00
parent 4f208ef4b1
commit e75a679dec
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class MQTTProtocolHandler extends ChannelInboundHandlerAdapter {
public MQTTProtocolHandler(ActiveMQServer server, MQTTProtocolManager protocolManager) {
this.server = server;
this.protocolManager = protocolManager;
this.mqttMessageActor = new Actor<>(server.getExecutorFactory().getExecutor(), this::act);
this.mqttMessageActor = new Actor<>(server.getThreadPool(), this::act);
}
void setConnection(MQTTConnection connection, ConnectionEntry entry) throws Exception {