Only pass CommitRequest to begin_streaming_parse
This commit is contained in:
@@ -122,15 +122,15 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
// Need mutable data for weaseljson
|
||||
std::string mutable_chunk = chunk;
|
||||
status = streaming_parser.parse_chunk(
|
||||
streaming_request, mutable_chunk.data(), mutable_chunk.size());
|
||||
status = streaming_parser.parse_chunk(mutable_chunk.data(),
|
||||
mutable_chunk.size());
|
||||
|
||||
offset += len;
|
||||
}
|
||||
|
||||
if (status == CommitRequestParser::ParseStatus::Incomplete) {
|
||||
std::cout << " Finalizing parse..." << std::endl;
|
||||
status = streaming_parser.finish_streaming_parse(streaming_request);
|
||||
status = streaming_parser.finish_streaming_parse();
|
||||
}
|
||||
|
||||
if (status == CommitRequestParser::ParseStatus::Complete) {
|
||||
|
||||
Reference in New Issue
Block a user