tiflow icon indicating copy to clipboard operation
tiflow copied to clipboard

[CDC] Useless goroutine in DMLSink module

Open flowbehappy opened this issue 1 year ago • 0 comments

b2026c88-b659-44e1-ae88-a509b0006fde

  1. Make dmlWorker a tool struct without goroutine and channel. Just call its methods and pass events via parameters.
  2. Merge defragmenter, encodingWorker into DMLSink struct, and remove goroutine and channel in them. No need to use extra two structs.

flowbehappy avatar Feb 20 '24 10:02 flowbehappy