tiflow
tiflow copied to clipboard
[CDC] Useless goroutine in DMLSink module
- Make
dmlWorkera tool struct without goroutine and channel. Just call its methods and pass events via parameters. - Merge
defragmenter,encodingWorkerintoDMLSinkstruct, and remove goroutine and channel in them. No need to use extra two structs.