This commit is contained in:
chrislu
2024-04-02 16:25:43 -07:00
parent f37c0d0d7a
commit ccdd9cd8de
6 changed files with 16 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ func NewLocalPartition(partition Partition, logFlushFn log_buffer.LogFlushFuncTy
}
func (p *LocalPartition) Publish(message *mq_pb.DataMessage) error {
p.LogBuffer.AddToBuffer(message.Key, message.Value, time.Now().UnixNano())
p.LogBuffer.AddToBuffer(message)
// maybe send to the follower
if p.followerStream != nil {