Skip to content

Commit

Permalink
filterx: fix pubsub message attributes to accept empty values
Browse files Browse the repository at this point in the history
Signed-off-by: shifter <[email protected]>
  • Loading branch information
bshifter committed Jan 22, 2025
1 parent ca7e054 commit b53ad72
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/grpc/pubsub/filterx/object-pubsub-message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ Message::set_attribute(const std::string &key, const std::string &value)
{
throw std::invalid_argument("Key cannot be empty");
}
if (value.empty())
{
throw std::invalid_argument("Value cannot be empty");
}
auto attributes = message.mutable_attributes();
if (attributes)
{
Expand Down

0 comments on commit b53ad72

Please sign in to comment.