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 committed Dec 4, 2024
1 parent 1bc8b0e commit e05173e
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 e05173e

Please sign in to comment.