Codebase list golang-github-go-kit-kit / a385e93
fixed addsvc json-rpc client example, was passing incorrect response payload in response decoder Bas van Beek 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
145145 if err != nil {
146146 return nil, fmt.Errorf("couldn't unmarshal body to SumResponse: %s", err)
147147 }
148 return res, nil
148 return sumres, nil
149149 }
150150
151151 func encodeSumRequest(_ context.Context, obj interface{}) (json.RawMessage, error) {
196196 if err != nil {
197197 return nil, fmt.Errorf("couldn't unmarshal body to ConcatResponse: %s", err)
198198 }
199 return res, nil
199 return concatres, nil
200200 }
201201
202202 func encodeConcatRequest(_ context.Context, obj interface{}) (json.RawMessage, error) {