Skip to content

Commit

Permalink
remove leftover debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Mar 20, 2024
1 parent bbe8735 commit b1b9642
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/ship_streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,10 @@ int main(int argc, char* argv[]) {
}
request_writer.EndObject();
request_writer.EndArray();
std::cerr << "01\n";

stream.binary(true);
std::cerr << "02\n";
stream.write(boost::asio::buffer(request_type.json_to_bin(request_sb.GetString(), [](){})));
std::cerr << "10\n";
stream.read_message_max(0);
std::cerr << "11\n";

// Each block_num can have multiple block_ids since forks are possible
// block_num, block_id
Expand All @@ -138,14 +134,10 @@ int main(int argc, char* argv[]) {
for(;;) {
boost::beast::flat_buffer buffer;
stream.read(buffer);
std::cerr << "1\n";

eosio::input_stream is((const char*)buffer.data().data(), buffer.data().size());
std::cerr << "2\n";
rapidjson::Document result_document;
//std::cerr << result_type.bin_to_json(is).c_str() << std::endl;
result_document.Parse(result_type.bin_to_json(is).c_str());
std::cerr << "3\n";

eosio::check(!result_document.HasParseError(), "Failed to parse result JSON from abieos");
eosio::check(result_document.IsArray(), "result should have been an array (variant) but it's not");
Expand Down

0 comments on commit b1b9642

Please sign in to comment.