diff --git a/src/fragment_store/message_serializer.cpp b/src/fragment_store/message_serializer.cpp index 78362e9c..6bb7df08 100644 --- a/src/fragment_store/message_serializer.cpp +++ b/src/fragment_store/message_serializer.cpp @@ -36,7 +36,7 @@ bool MessageSerializerCallbacks::component_emplace_or_replace_json>(j.is_binary()?j:j["bytes"]); + const std::vector id = j.is_binary()?j:j["bytes"]; // TODO: id lookup table, this is very inefficent for (const auto& [c_it, id_it] : msc.cr.view().each()) { @@ -79,7 +79,7 @@ bool MessageSerializerCallbacks::component_emplace_or_replace_json>(j.is_binary()?j:j["bytes"]); + const std::vector id = j.is_binary()?j:j["bytes"]; // TODO: id lookup table, this is very inefficent for (const auto& [c_it, id_it] : msc.cr.view().each()) {