Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Hunter committed Apr 6, 2023
1 parent 85801b9 commit c0dbaee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/importer/chunk_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (b *deliverKVBatch) size() uint64 {

func (b *deliverKVBatch) add(kvs *kv.Pairs) {
for _, pair := range kvs.Pairs {
if pair.Key[tablecodec.TableSplitKeyLen+1] == 'r' {
if tablecodec.IsRecordKey(pair.Key) {
b.dataKVs.Pairs = append(b.dataKVs.Pairs, pair)
b.dataChecksum.UpdateOne(pair)
} else {
Expand Down Expand Up @@ -123,6 +123,7 @@ type chunkProcessor struct {
}

func (p *chunkProcessor) process(ctx context.Context) error {
// todo: use error group pattern to simplify the code
deliverCompleteCh := make(chan deliverResult)
go func() {
defer close(deliverCompleteCh)
Expand Down

0 comments on commit c0dbaee

Please sign in to comment.