Skip to content
Snippets Groups Projects
Commit 31f75baa authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

net.box: remove decode_push from method_decoder table

No need to have it there, since we can call it directly.

Part of #6241
parent 6021bdc0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment