diff --git a/lib/packager/BondSplicer.cpp b/lib/packager/BondSplicer.cpp index 7557ce1d..acfb9127 100644 --- a/lib/packager/BondSplicer.cpp +++ b/lib/packager/BondSplicer.cpp @@ -43,58 +43,24 @@ std::vector BondSplicer::splice() const std::vector output; bond_lite::CompactBinaryProtocolWriter writer(output); - // ClientToCollectorRequest - //writer.WriteStructBegin(nullptr, false); - - // 1: optional vector DataPackages - //writer.WriteFieldOmitted(bond_lite::BT_LIST, 1, nullptr); - - // 2: optional int32 RequestRetryCount - //writer.WriteFieldOmitted(bond_lite::BT_INT32, 2, nullptr); - - // 3: optional map> TokenToDataPackagesMap if (!m_packages.empty()) { - //writer.WriteFieldBegin(bond_lite::BT_MAP, 3, nullptr); - //writer.WriteMapContainerBegin(m_packages.size(), bond_lite::BT_STRING, bond_lite::BT_LIST); for (PackageInfo const& package : m_packages) { - // Key (string) - //writer.WriteString(package.tenantToken); - - // Value (vector) - //writer.WriteContainerBegin(1, bond_lite::BT_STRUCT); - //writer.WriteBlob(m_buffer.data() + package.header.offset, package.header.length - 1); - - // 8: optional vector Records if (!package.records.empty()) { - //writer.WriteFieldBegin(bond_lite::BT_LIST, 8, nullptr); - //writer.WriteContainerBegin(package.records.size(), bond_lite::BT_STRUCT); for (Span const& record : package.records) { writer.WriteBlob(m_buffer.data() + record.offset, record.length); } - - //writer.WriteFieldEnd(); } else { - //writer.WriteFieldOmitted(bond_lite::BT_LIST, 8, nullptr); } - - //writer.WriteStructEnd(false); - - //writer.WriteContainerEnd(); } - - //writer.WriteContainerEnd(); - //writer.WriteFieldEnd(); } else { - //writer.WriteFieldOmitted(bond_lite::BT_MAP, 3, nullptr); } - //writer.WriteStructEnd(false); return output; }