Skip to content

Commit

Permalink
Merge 409086c into 144fa27
Browse files Browse the repository at this point in the history
  • Loading branch information
krizex authored Jan 18, 2018
2 parents 144fa27 + 409086c commit 89f2d4f
Show file tree
Hide file tree
Showing 4 changed files with 624 additions and 274 deletions.
4 changes: 2 additions & 2 deletions network/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
((name xcp_network_interface)
(public_name xcp.network.interface)
(modules (network_interface))
(flags (:standard -w -39 %s))
(flags (:standard -w -39 -w -27 %s))
(libraries
(rpclib
threads
Expand All @@ -53,4 +53,4 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
(wrapped false)
%s))

|} (flags rewriters_camlp4) coverage_rewriter (flags rewriters_ppx) coverage_rewriter
|} (flags rewriters_ppx) coverage_rewriter (flags rewriters_ppx) coverage_rewriter
26 changes: 13 additions & 13 deletions network/network_client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ let retry_econnrefused f =
| None -> loop () in
loop ()

module Client = Network_interface.Client(struct
let rpc call =
retry_econnrefused
(fun () ->
if !use_switch
then json_switch_rpc !queue_name call
else xml_http_rpc
~srcstr:(Xcp_client.get_user_agent ())
~dststr:"network"
Network_interface.uri
call
)
end)
let rpc call =
retry_econnrefused
(fun () ->
if !use_switch
then json_switch_rpc !queue_name call
else xml_http_rpc
~srcstr:(Xcp_client.get_user_agent ())
~dststr:"network"
Network_interface.uri
call
)

module Client = Network_interface.API(Idl.GenClientExnRpc(struct let rpc=rpc end))
Loading

0 comments on commit 89f2d4f

Please sign in to comment.