This commit is contained in:
@@ -288,7 +288,12 @@ public final class SncpClient {
|
|||||||
String targetTopic = action.topicTargetParamIndex >= 0 ? (String) params[action.topicTargetParamIndex] : this.topic;
|
String targetTopic = action.topicTargetParamIndex >= 0 ? (String) params[action.topicTargetParamIndex] : this.topic;
|
||||||
if (targetTopic == null) targetTopic = this.topic;
|
if (targetTopic == null) targetTopic = this.topic;
|
||||||
MessageRecord message = messageClient.createMessageRecord(targetTopic, null, reqbytes);
|
MessageRecord message = messageClient.createMessageRecord(targetTopic, null, reqbytes);
|
||||||
|
final String tt = targetTopic;
|
||||||
return messageClient.sendMessage(message).thenApply(msg -> {
|
return messageClient.sendMessage(message).thenApply(msg -> {
|
||||||
|
if (msg == null) {
|
||||||
|
logger.log(Level.SEVERE, action.method + " sncp mq(params: " + convert.convertTo(params) + ", message: " + message + ") deal error, this.topic = " + this.topic + ", targetTopic = " + tt + ", result = null");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
ByteBuffer buffer = ByteBuffer.wrap(msg.getContent());
|
ByteBuffer buffer = ByteBuffer.wrap(msg.getContent());
|
||||||
checkResult(seqid, action, buffer);
|
checkResult(seqid, action, buffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user