Skip to content

Commit

Permalink
Fix errors.
Browse files Browse the repository at this point in the history
We were missing a header, and we can pass a `kj::ArrayPtr` which does not require being null-terminated.
  • Loading branch information
teo-tsirpanis committed Oct 18, 2024
1 parent cdbebaf commit 4dc4c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tiledb/sm/serialization/capnp_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#ifdef TILEDB_SERIALIZATION

#include <capnp/compat/json.h>

#include "tiledb-rest.capnp.h"

#include "tiledb/common/heap_memory.h"
Expand Down Expand Up @@ -708,7 +710,7 @@ void decode_json_message(
buffer = buffer.first(buffer.size() - 1);
}

json.decode(kj::StringPtr(buffer.data(), buffer.size()), message_builder);
json.decode(kj::ArrayPtr(buffer.data(), buffer.size()), message_builder);
}

} // namespace utils
Expand Down

0 comments on commit 4dc4c78

Please sign in to comment.