mirror of https://github.com/tikv/client-go.git
parent
940d55927c
commit
5efdb149b9
|
|
@ -155,10 +155,10 @@ func newConnArray(addr string, conf *config.RPC) (*connArray, error) {
|
||||||
a := &connArray{
|
a := &connArray{
|
||||||
conf: conf,
|
conf: conf,
|
||||||
index: 0,
|
index: 0,
|
||||||
conns: make([]*grpc.ClientConn, conf.GrpcMaxCallMsgSize),
|
conns: make([]*grpc.ClientConn, conf.MaxConnectionCount),
|
||||||
streamTimeout: make(chan *Lease, 1024),
|
streamTimeout: make(chan *Lease, 1024),
|
||||||
batchCommandsCh: make(chan *batchCommandsEntry, conf.Batch.MaxBatchSize),
|
batchCommandsCh: make(chan *batchCommandsEntry, conf.Batch.MaxBatchSize),
|
||||||
batchCommandsClients: make([]*batchCommandsClient, 0, conf.GrpcMaxCallMsgSize),
|
batchCommandsClients: make([]*batchCommandsClient, 0, conf.Batch.MaxBatchSize),
|
||||||
transportLayerLoad: 0,
|
transportLayerLoad: 0,
|
||||||
}
|
}
|
||||||
if err := a.Init(addr); err != nil {
|
if err := a.Init(addr); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue