Fix typo (parralel->parallel) master

This commit is contained in:
ionutboangiu
2021-06-30 09:48:46 +03:00
committed by Dan Christian Bogos
parent 43721ff0df
commit cf217e183f
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ type GeneralCfg struct {
DigestSeparator string //
DigestEqual string //
RSRSep string // separator used to split RSRParser (by default is used ";")
MaxParallelConns int // the maximum number of connection used by the *parallel strategy
MaxParallelConns int // the maximum number of connections used by the *parallel strategy
}
// loadFromJSONCfg loads General config from JsonCfg

View File

@@ -86,7 +86,7 @@ func (cM *ConnManager) getConnWithConfig(connID string, connCfg *config.RPCConn,
biRPCClient rpcclient.BiRPCConector, intChan chan rpcclient.ClientConnector,
isInternalRPC bool) (conn rpcclient.ClientConnector, err error) {
if connCfg.Strategy == rpcclient.PoolParallel {
rpcConnCfg := connCfg.Conns[0] // for parrallel we need only the first connection
rpcConnCfg := connCfg.Conns[0] // for parallel we need only the first connection
codec := rpcclient.GOBrpc
switch {
case rpcConnCfg.Address == rpcclient.InternalRPC: