add changes for mercury

This commit is contained in:
Asim
2015-12-16 01:18:05 +00:00
parent ed75f84584
commit 271b827aa9
3 changed files with 19 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ func (r *rpcClient) call(ctx context.Context, address string, request Request, r
defer c.Close()
client := newClientWithCodec(newRpcPlusCodec(msg, c, cf))
err = client.Call(ctx, request.Method(), request.Request(), response)
err = client.Call(ctx, request.Service(), request.Method(), request.Request(), response)
if err != nil {
return err
}
@@ -137,7 +137,7 @@ func (r *rpcClient) stream(ctx context.Context, address string, request Request,
}
client := newClientWithCodec(newRpcPlusCodec(msg, c, cf))
call := client.StreamGo(request.Method(), request.Request(), responseChan)
call := client.StreamGo(request.Service(), request.Method(), request.Request(), responseChan)
return &rpcStream{
request: request,