Skip to content

Commit

Permalink
[ML] Alter comment that referred to RapidJSON
Browse files Browse the repository at this point in the history
We no longer use RapidJSON in the ML C++, so make a comment
that referred to it more generic.
  • Loading branch information
droberts195 committed Feb 15, 2024
1 parent ce26543 commit 8b8f0e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public static void writeStateToStream(BytesReference source, OutputStream stream
--length;
}
source.slice(0, length).writeTo(stream);
// This is dictated by RapidJSON on the C++ side; it treats a '\0' as end-of-file
// even when it's not really end-of-file, and this is what we need because we're
// This is dictated by the JSON parser on the C++ side; it treats a '\0' as the character
// that separates distinct JSON documents, and this is what we need because we're
// sending multiple JSON documents via the same named pipe.
stream.write(0);
}
Expand Down

0 comments on commit 8b8f0e3

Please sign in to comment.