diff --git a/registry.go b/registry.go index 1e917dd..2b6bc05 100644 --- a/registry.go +++ b/registry.go @@ -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)