This commit is contained in:
crusader 2017-11-03 16:53:09 +09:00
parent b80a7aa06d
commit 092ac44a9a

View File

@ -77,7 +77,7 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
// Decode the args.
var in []reflect.Value
pValues, pInstances := methodSpec.getParamValues()
_, pInstances := methodSpec.getParamValues()
if nil != pInstances && 0 < len(pInstances) {
if errRead := codec.ReadParams(pInstances); errRead != nil {
@ -86,7 +86,8 @@ func (rr *rpcRegistry) Invoke(codec protocol.RegistryCodec) (result interface{},
pCount := len(pInstances)
in = make([]reflect.Value, pCount+1)
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 {
in = make([]reflect.Value, 1)