fixed addsvc json-rpc client example, was passing incorrect response payload in response decoder
Bas van Beek
6 years ago
145 | 145 | if err != nil { |
146 | 146 | return nil, fmt.Errorf("couldn't unmarshal body to SumResponse: %s", err) |
147 | 147 | } |
148 | return res, nil | |
148 | return sumres, nil | |
149 | 149 | } |
150 | 150 | |
151 | 151 | func encodeSumRequest(_ context.Context, obj interface{}) (json.RawMessage, error) { |
196 | 196 | if err != nil { |
197 | 197 | return nil, fmt.Errorf("couldn't unmarshal body to ConcatResponse: %s", err) |
198 | 198 | } |
199 | return res, nil | |
199 | return concatres, nil | |
200 | 200 | } |
201 | 201 | |
202 | 202 | func encodeConcatRequest(_ context.Context, obj interface{}) (json.RawMessage, error) { |