We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a83a1 commit dc03dd6Copy full SHA for dc03dd6
pulsar/producer_partition.go
@@ -1039,13 +1039,13 @@ func (p *partitionProducer) updateMetaData(sr *sendRequest) {
1039
deliverAt = time.Now().Add(sr.msg.DeliverAfter)
1040
}
1041
1042
- sr.mm = p.genMetadata(sr.msg, int(sr.uncompressedSize), deliverAt)
1043
-
1044
// set default ReplicationClusters when DisableReplication
1045
if sr.msg.DisableReplication {
1046
sr.msg.ReplicationClusters = []string{"__local__"}
1047
1048
+ sr.mm = p.genMetadata(sr.msg, int(sr.uncompressedSize), deliverAt)
+
1049
sr.sendAsBatch = !p.options.DisableBatching &&
1050
sr.msg.ReplicationClusters == nil &&
1051
deliverAt.UnixNano() < 0
0 commit comments