Skip to content

Commit

Permalink
Revert PayloadProcessor ModelID to original value
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada committed Oct 17, 2023
1 parent 6630fbb commit 7fc8014
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/ibm/watson/modelmesh/ModelMeshApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,9 @@ public void onHalfClose() {
}
} finally {
if (payloadProcessor != null) {
String payloadModelId = vModelId == null ? resolvedModelId : vModelId;
processPayload(reqMessage.readerIndex(reqReaderIndex),
requestId, resolvedModelId, methodName, headers, null, true);
requestId, payloadModelId, methodName, headers, null, true);
} else {
releaseReqMessage();
}
Expand Down Expand Up @@ -803,7 +804,8 @@ public void onHalfClose() {
data = response.data.readerIndex(respReaderIndex);
metadata = response.metadata;
}
processPayload(data, requestId, resolvedModelId, methodName, metadata, status, releaseResponse);
String payloadModelId = vModelId == null ? resolvedModelId : vModelId;
processPayload(data, requestId, payloadModelId, methodName, metadata, status, releaseResponse);
} else if (releaseResponse && response != null) {
response.release();
}
Expand Down

0 comments on commit 7fc8014

Please sign in to comment.