Skip to content

Commit

Permalink
we at least know the max size
Browse files Browse the repository at this point in the history
Signed-off-by: Brenton Poke <[email protected]>
  • Loading branch information
BrentonPoke committed Oct 20, 2024
1 parent daa0bdc commit f370b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/DuckPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DuckPacket {
* @brief Construct a new Duck Packet object.
*
*/
DuckPacket() {}
DuckPacket() {buffer.reserve(229);}

/**
* @brief Construct a new Duck Packet object.
Expand All @@ -51,7 +51,7 @@ class DuckPacket {
* @param filter a bloom filter
*/
DuckPacket(std::array<byte,8> duid)
: duid(duid) { }
: duid(duid) { buffer.reserve(229);}

~DuckPacket() {}
/**
Expand Down

0 comments on commit f370b00

Please sign in to comment.