Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu committed Mar 4, 2024
1 parent 02b5646 commit dd9620a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cdc/cdc/sink/tikv.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ func (k *tikvSink) runWorker(ctx context.Context, workerIdx uint32) error {
}
continue
}
_ = batcher.Append(e.rawKVEntry) // TODO: handle error
if err := batcher.Append(e.rawKVEntry); err != nil {
return errors.Trace(err)
}

if batcher.ByteSize() >= defaultTiKVBatchBytesLimit {
if err := flushToTiKV(); err != nil {
Expand Down

0 comments on commit dd9620a

Please sign in to comment.