mirror of https://github.com/tikv/client-go.git
client: fix some typos (#296)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
This commit is contained in:
parent
eb7e4884a8
commit
c7f8168472
|
|
@ -278,7 +278,7 @@ func (a *batchConn) fetchMorePendingRequests(
|
|||
}
|
||||
after.Stop()
|
||||
|
||||
// Do an additional non-block try. Here we test the lengh with `maxBatchSize` instead
|
||||
// Do an additional non-block try. Here we test the length with `maxBatchSize` instead
|
||||
// of `batchWaitSize` because trying best to fetch more requests is necessary so that
|
||||
// we can adjust the `batchWaitSize` dynamically.
|
||||
for a.reqBuilder.len() < maxBatchSize {
|
||||
|
|
@ -644,7 +644,7 @@ func (c *batchCommandsClient) batchRecvLoop(cfg config.TiKVClient, tikvTransport
|
|||
}
|
||||
|
||||
transportLayerLoad := resp.GetTransportLayerLoad()
|
||||
if transportLayerLoad > 0.0 && cfg.MaxBatchWaitTime > 0 {
|
||||
if transportLayerLoad > 0 && cfg.MaxBatchWaitTime > 0 {
|
||||
// We need to consider TiKV load only if batch-wait strategy is enabled.
|
||||
atomic.StoreUint64(tikvTransportLayerLoad, transportLayerLoad)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue