|
|
@ -188,8 +188,7 @@ func (b *MessageQueueBroker) FollowInMemoryMessages(req *mq_pb.FollowInMemoryMe |
|
|
|
// to indicate the follower is connected
|
|
|
|
stream.Send(&mq_pb.FollowInMemoryMessagesResponse{ |
|
|
|
Message: &mq_pb.FollowInMemoryMessagesResponse_Ctrl{ |
|
|
|
Ctrl: &mq_pb.FollowInMemoryMessagesResponse_CtrlMessage{ |
|
|
|
}, |
|
|
|
Ctrl: &mq_pb.FollowInMemoryMessagesResponse_CtrlMessage{}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
@ -200,7 +199,7 @@ func (b *MessageQueueBroker) FollowInMemoryMessages(req *mq_pb.FollowInMemoryMe |
|
|
|
|
|
|
|
var prevFlushTsNs int64 |
|
|
|
|
|
|
|
_,_, err = localTopicPartition.LogBuffer.LoopProcessLogData(clientName, startPosition, 0, func() bool { |
|
|
|
_, _, err = localTopicPartition.LogBuffer.LoopProcessLogData(clientName, startPosition, 0, func() bool { |
|
|
|
if !isConnected { |
|
|
|
return false |
|
|
|
} |
|
|
|