Skip to content

Commit

Permalink
some small typo fixes (pingcap#11899)
Browse files Browse the repository at this point in the history
  • Loading branch information
newer027 authored and jackysp committed Aug 28, 2019
1 parent 932c4a7 commit d3fe398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/tikv/client_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,14 @@ func (a *batchConn) Close() {
func removeCanceledRequests(entries []*batchCommandsEntry,
requests []*tikvpb.BatchCommandsRequest_Request) ([]*batchCommandsEntry, []*tikvpb.BatchCommandsRequest_Request) {
validEntries := entries[:0]
validRequets := requests[:0]
validRequests := requests[:0]
for _, e := range entries {
if !e.isCanceled() {
validEntries = append(validEntries, e)
validRequets = append(validRequets, e.req)
validRequests = append(validRequests, e.req)
}
}
return validEntries, validRequets
return validEntries, validRequests
}

func sendBatchRequest(
Expand Down

0 comments on commit d3fe398

Please sign in to comment.