Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/content/xapi/guides/howtos/add-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ the Host module:
let price_of ~__context ~host ~item =
info "Host.price_of for item %s" item;
let local_fn = Local.Host.price_of ~host ~item in
do_op_on ~local_fn ~__context ~host
(fun session_id rpc -> Client.Host.price_of ~rpc ~session_id ~host ~item)
let remote_fn = Client.Host.price_of ~host ~item in
do_op_on ~local_fn ~__context ~host ~remote_fn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, do_op_on now has a named argument ~remote_fn, which it previously didn't have.


After the ~__context parameter, the parameters of this new function should
match the parameters we specified for the message. In this case, that is the
Expand Down
Loading