Unverified Commit c7bb1e83 authored by Graham King's avatar Graham King Committed by GitHub
Browse files

fix(bindings): serve_endpoint no longer takes a lease (#1014)

parent d2768c22
...@@ -438,7 +438,7 @@ async def worker(runtime: DistributedRuntime): ...@@ -438,7 +438,7 @@ async def worker(runtime: DistributedRuntime):
# 3. Attach request handler # 3. Attach request handler
# #
await endpoint.serve_endpoint(RequestHandler(engine).generate, None) await endpoint.serve_endpoint(RequestHandler(engine).generate)
class RequestHandler: class RequestHandler:
......
...@@ -134,7 +134,7 @@ async def init(runtime: DistributedRuntime, config: Config): ...@@ -134,7 +134,7 @@ async def init(runtime: DistributedRuntime, config: Config):
# the server will gracefully shutdown (i.e., keep opened TCP streams finishes) # the server will gracefully shutdown (i.e., keep opened TCP streams finishes)
# after the lease is revoked # after the lease is revoked
await endpoint.serve_endpoint(RequestHandler(engine_client).generate, None) await endpoint.serve_endpoint(RequestHandler(engine_client).generate)
def cmd_line_args(): def cmd_line_args():
......
...@@ -154,7 +154,7 @@ async def init(runtime: DistributedRuntime, config: Config): ...@@ -154,7 +154,7 @@ async def init(runtime: DistributedRuntime, config: Config):
# the server will gracefully shutdown (i.e., keep opened TCP streams finishes) # the server will gracefully shutdown (i.e., keep opened TCP streams finishes)
# after the lease is revoked # after the lease is revoked
await endpoint.serve_endpoint( await endpoint.serve_endpoint(
RequestHandler(engine_client, default_sampling_params).generate, None RequestHandler(engine_client, default_sampling_params).generate
) )
......
...@@ -108,7 +108,7 @@ async def init(runtime: DistributedRuntime, config: Config): ...@@ -108,7 +108,7 @@ async def init(runtime: DistributedRuntime, config: Config):
# the server will gracefully shutdown (i.e., keep opened TCP streams finishes) # the server will gracefully shutdown (i.e., keep opened TCP streams finishes)
# after the lease is revoked # after the lease is revoked
await endpoint.serve_endpoint(RequestHandler(engine_client).generate, None) await endpoint.serve_endpoint(RequestHandler(engine_client).generate)
def cmd_line_args(): def cmd_line_args():
......
...@@ -125,7 +125,7 @@ async def init(runtime: DistributedRuntime, config: Config): ...@@ -125,7 +125,7 @@ async def init(runtime: DistributedRuntime, config: Config):
# the server will gracefully shutdown (i.e., keep opened TCP streams finishes) # the server will gracefully shutdown (i.e., keep opened TCP streams finishes)
# after the lease is revoked # after the lease is revoked
await endpoint.serve_endpoint(RequestHandler(engine_client).generate, None) await endpoint.serve_endpoint(RequestHandler(engine_client).generate)
def cmd_line_args(): def cmd_line_args():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment