[ Service ] [ Executor ] 初步重构Executor部分的代码
This commit is contained in:
@@ -52,19 +52,6 @@ public class OMessageToAgentSender {
|
||||
octopusMessage
|
||||
);
|
||||
|
||||
// 统一处理Content
|
||||
if (octopusMessage.getContent() instanceof String) {
|
||||
try {
|
||||
|
||||
String contendString = OctopusObjectMapper.writeValueAsString(octopusMessage.getContent());
|
||||
|
||||
octopusMessage.setContent(contendString);
|
||||
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
rabbitTemplate.convertAndSend(
|
||||
initRabbitMQConfig.INIT_EXCHANGE,
|
||||
initRabbitMQConfig.INIT_FROM_SERVER_KEY,
|
||||
|
||||
Reference in New Issue
Block a user