Skip to content

Commit

Permalink
fix serde of RemoteDocLevelMonitorInput (#666)
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <[email protected]>
  • Loading branch information
sbcd90 authored Jun 5, 2024
1 parent 79994f6 commit 0d21526
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ data class RemoteDocLevelMonitorInput(val input: BytesReference, val docLevelMon
when (fieldName) {
RemoteMonitorInput.INPUT_FIELD -> bytes = xcp.binaryValue()
RemoteMonitorInput.INPUT_SIZE -> size = xcp.intValue()
Input.Type.DOCUMENT_LEVEL_INPUT.value -> docLevelMonitorInput = DocLevelMonitorInput.parse(xcp)
Input.Type.DOCUMENT_LEVEL_INPUT.value -> {
docLevelMonitorInput = DocLevelMonitorInput.parse(xcp)
XContentParserUtils.ensureExpectedToken(XContentParser.Token.END_OBJECT, xcp.nextToken(), xcp)
}
}
}
val input = BytesReference.fromByteBuffer(ByteBuffer.wrap(bytes, 0, size))
Expand Down

0 comments on commit 0d21526

Please sign in to comment.