[Tarantool-patches] [PATCH vshard 2/2] storage: introduce vshard.storage._call()
Oleg Babin
olegrok at tarantool.org
Mon Mar 23 09:42:11 MSK 2020
Thanks for your answers. Seems I've missed one comment. But LGTM in general.
On 22/03/2020 22:13, Vladislav Shpilevoy wrote:
>>> +
>>> +local function service_call(...)
>>> + local service_name = select(1, ...)
>>> + return service_call_api[service_name](select(2, ...))
>>> +end
>>
What's about a following diff?
============
diff --git a/vshard/storage/init.lua b/vshard/storage/init.lua
index 6aa5d6a..3653914 100644
--- a/vshard/storage/init.lua
+++ b/vshard/storage/init.lua
@@ -2203,9 +2203,8 @@ service_call_api = setmetatable({
return res
end})
-local function service_call(...)
- local service_name = select(1, ...)
- return service_call_api[service_name](select(2, ...))
+local function service_call(service_name, ...)
+ return service_call_api[service_name](...)
end
============
More information about the Tarantool-patches
mailing list