ing
This commit is contained in:
parent
b80a7aa06d
commit
092ac44a9a
|
@ -77,7 +77,7 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
|
||||||
// Decode the args.
|
// Decode the args.
|
||||||
|
|
||||||
var in []reflect.Value
|
var in []reflect.Value
|
||||||
pValues, pInstances := methodSpec.getParamValues()
|
_, pInstances := methodSpec.getParamValues()
|
||||||
|
|
||||||
if nil != pInstances && 0 < len(pInstances) {
|
if nil != pInstances && 0 < len(pInstances) {
|
||||||
if errRead := codec.ReadParams(pInstances); errRead != nil {
|
if errRead := codec.ReadParams(pInstances); errRead != nil {
|
||||||
|
@ -86,7 +86,8 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
|
||||||
pCount := len(pInstances)
|
pCount := len(pInstances)
|
||||||
in = make([]reflect.Value, pCount+1)
|
in = make([]reflect.Value, pCount+1)
|
||||||
for indexI := 0; indexI < pCount; indexI++ {
|
for indexI := 0; indexI < pCount; indexI++ {
|
||||||
in[indexI+1] = pValues[indexI]
|
//in[indexI+1] = pValues[indexI]
|
||||||
|
in[indexI+1] = reflect.ValueOf(pInstances[indexI]).Convert(methodSpec.paramTypes[indexI])
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
in = make([]reflect.Value, 1)
|
in = make([]reflect.Value, 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user