add control message to data message

This commit is contained in:
chrislu
2024-03-31 16:35:46 -07:00
parent 546ae87c39
commit 66a878af39
5 changed files with 502 additions and 427 deletions

View File

@@ -29,8 +29,10 @@ func (p *TopicPublisher) FinishPublish() error {
if inputBuffers, found := p.partition2Buffer.AllIntersections(0, pub_balancer.MaxPartitionCount); found {
for _, inputBuffer := range inputBuffers {
inputBuffer.Enqueue(&mq_pb.DataMessage{
IsClose: true,
TsNs: time.Now().UnixNano(),
Ctrl: &mq_pb.ControlMessage{
IsClose: true,
},
})
}
}