Skip to content

Commit

Permalink
Set Pubsub message attribute "batched" with value
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-zahiri authored and jeremydmiller committed Dec 12, 2024
1 parent 1bc8b0e commit e0fe587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void MapOutgoingToMessage(OutgoingMessageBatch outgoing, PubsubMessage me
{
message.Data = ByteString.CopyFrom(outgoing.Data);
message.Attributes["destination"] = outgoing.Destination.ToString();
message.Attributes["batched"] = string.Empty;
message.Attributes["batched"] = "1";
}

protected override void writeOutgoingHeader(PubsubMessage outgoing, string key, string value)
Expand Down

0 comments on commit e0fe587

Please sign in to comment.