mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 22:20:31 +08:00
[docs] Fix typos in documentation (#11414)
This commit is contained in:
@@ -358,7 +358,7 @@ def start(detached: bool = False,
|
||||
this to "0.0.0.0". One HTTP server will be started on each node in
|
||||
the Ray cluster.
|
||||
http_port (int): Port for HTTP server. Defaults to 8000.
|
||||
http_middleswares (list): A list of Starlette middlewares that will be
|
||||
http_middlewares (list): A list of Starlette middlewares that will be
|
||||
applied to the HTTP servers in the cluster.
|
||||
"""
|
||||
# Initialize ray if needed.
|
||||
|
||||
@@ -18,4 +18,4 @@ client.create_backend("counter", Counter)
|
||||
client.create_endpoint("counter", backend="counter", route="/counter")
|
||||
|
||||
requests.get("http://127.0.0.1:8000/counter").json()
|
||||
# > {"current_counter": self.count}
|
||||
# > {"current_counter": 0}
|
||||
|
||||
Reference in New Issue
Block a user