Skip to content

Commit

Permalink
Use toStream with serialize
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Aug 22, 2024
1 parent d2b33dd commit b4e61b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public SearchHit deserialize(StreamInput in) {
@Override
public void serialize(SearchHit object, StreamOutput out) throws SerDe.SerializationException {
try {
object.writeTo(out);
toStream(object, out);
} catch (IOException e) {
throw new SerDe.SerializationException("Failed to serialize FetchSearchResult", e);
}
Expand Down

0 comments on commit b4e61b8

Please sign in to comment.