fix(runner): remove unnecessary runnable_self arugment
@@ -21,7 +21,6 @@ class LocalRunnerRef(RunnerHandle):
self, __bentoml_method_name: str, *args: t.Any, **kwargs: t.Any
) -> t.Any:
args_list = list(args)
- args_list.insert(0, self._runnable)
args = tuple(args_list)
return getattr(self._runnable, __bentoml_method_name)(*args, **kwargs)
@@ -32,7 +31,6 @@ class LocalRunnerRef(RunnerHandle):
method = getattr(self._runnable, __bentoml_method_name)
args_list = list(args)
- # args_list.insert(0, self._runnable)
args = tuple(args_list)
return await anyio.to_thread.run_sync(
functools.partial(method, **kwargs), *args, limiter=anyio.CapacityLimiter(1)
