diff --git a/src/node/net/RPC_server.ml b/src/node/net/RPC_server.ml index ad06f240e..f457fb49a 100644 --- a/src/node/net/RPC_server.ml +++ b/src/node/net/RPC_server.ml @@ -53,7 +53,7 @@ let make_cors_headers ?(headers=Cohttp.Header.init ()) Cohttp.Header.add_multi cors_headers "Access-Control-Allow-Origin" [allowed_origin] -(* Promise a running RPC server. Takes the port. *) +(* Promise a running RPC server. *) let launch ?pre_hook ?post_hook ?(host="::") mode root cors_allowed_origins cors_allowed_headers = (* launch the worker *) let cancelation, canceler, _ = Lwt_utils.canceler () in diff --git a/src/node/net/RPC_server.mli b/src/node/net/RPC_server.mli index 2d196d82e..3ffb4c11b 100644 --- a/src/node/net/RPC_server.mli +++ b/src/node/net/RPC_server.mli @@ -12,7 +12,7 @@ (** A handle on the server worker. *) type server -(** Promise a running RPC serve. To call a RPC at /p/a/t/h/ in the +(** Promise a running RPC server. To call an RPC at /p/a/t/h/ in the provided service, one must call the URI /call/p/a/t/h/. Calling /list/p/a/t/h/ will list the services prefixed by /p/a/t/h/, if any. Calling /schema/p/a/t/h/ will describe the input and output @@ -45,7 +45,7 @@ val launch : string list -> server Lwt.t -(** Kill a RPC server. *) +(** Kill an RPC server. *) val shutdown : server -> unit Lwt.t (** Retrieve the root service of the server. *)