[Tarantool-patches] [PATCH 04/20] net.box: remove decode_push from method_decoder table
Vladimir Davydov
vdavydov at tarantool.org
Fri Jul 23 14:07:14 MSK 2021
No need to have it there, since we can call it directly.
---
src/box/lua/net_box.lua | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/box/lua/net_box.lua b/src/box/lua/net_box.lua
index fc8468ed8a01..9cb573f659b3 100644
--- a/src/box/lua/net_box.lua
+++ b/src/box/lua/net_box.lua
@@ -142,7 +142,6 @@ local method_decoder = {
max = decode_get,
count = decode_count,
inject = decode_data,
- push = decode_push,
}
local function decode_error(raw_data)
@@ -662,8 +661,7 @@ local function create_transport(host, port, user, password, callback,
request.id = nil
else
local msg
- msg, real_end, request.errno =
- method_decoder.push(body_rpos, body_end)
+ msg, real_end, request.errno = decode_push(body_rpos, body_end)
assert(real_end == body_end, "invalid body length")
request.on_push(request.on_push_ctx, msg)
end
--
2.25.1
More information about the Tarantool-patches
mailing list