Skip to content

Commit

Permalink
sinkv2(ticdc): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Jul 20, 2022
1 parent 20e5ece commit 5135a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/sinkv2/eventsink/mq/mq_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *sink) WriteEvents(rows ...*eventsink.RowChangeCallbackableEvent) error
return errors.Trace(err)
}
partition := s.eventRouter.GetPartitionForRowChange(row.Event, partitionNum)
// This never be blocked.
// This never be blocked because this is an unbounded channel.
s.worker.msgChan.In() <- mqEvent{
key: mqv1.TopicPartitionKey{
Topic: topic, Partition: partition,
Expand Down

0 comments on commit 5135a6b

Please sign in to comment.