From 092ac44a9ae24a8951a50560532d1f368e0ec72e Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 3 Nov 2017 16:53:09 +0900 Subject: [PATCH] ing --- registry.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)