From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 2379B6EC56; Fri, 23 Jul 2021 14:09:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2379B6EC56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1627038573; bh=Tx48F7KHf32b1uxoTFSchkJLAecz2TWt1SE/oSMU1gE=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=kwB1gkD7xiNJgyAKzig/HLA9RgSZq7ytYkd2l+mPWVFfh9TF7whu6AGIuWAvgOuP/ XwbGq9k2FdD2hAo1JGkUw0hQYLPWhMPXCdu9ots9hxetYxu4B8fvOvmiRfGo+AHPCZ rfj1vwzaN5GY30mLcYY/ov0j0Se3CN3rr93uGdMY= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 3B8D56EC6F for ; Fri, 23 Jul 2021 14:07:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3B8D56EC6F Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1m6t1g-0004dl-Pr; Fri, 23 Jul 2021 14:07:33 +0300 To: tarantool-patches@dev.tarantool.org Date: Fri, 23 Jul 2021 14:07:14 +0300 Message-Id: <8fc5b0e9e34c8fdd93791fd0d9582d1a0717a2ed.1627024646.git.vdavydov@tarantool.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-174C08C4: 5188C02AEC42908C481ED7ADC579193296BBA28369E3F2D2713F3D5F7D406D31BCF678C7329BA986 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD941C43E597735A9C30288BCF456A452EC92BAB6D044D5CCDE182A05F5380850403BD144BBA40FDB917686CF61D42B9ECA46CCB1C12879EDF970EA0DD8A6DF857D X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A3295C83650092F9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637670E1B164B70895C8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F69135296715532681A8A0BD873F072A117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF80095D1E57F4578A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352026055571C92BF10FBDFBBEFFF4125B51D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6753C3A5E0A5AB5B7089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 8BD88D57C5CADBC8B2710865C386751094C72BDDC9A8ED5CA3B1A56EE2B804F6B226C914C996894645FD9D8A29397D6EFF55FE49A3C2BFCFC8C84E951CD0BE2F296C473AB1E14218EA052B563B0B06C67866D6147AF826D8F69135296715532681A8A0BD873F072AF972CCD2F8FE1EF1CFC4036BBF6A4EA98B955F568D4ED1B5CB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34BF5454112BD5BFD70DA0114ECDEEFE801E865427FD84D701719DBF7ED1CE97C209C56CDA141193C11D7E09C32AA3244CBC881B44FDFFE9CD75663E2280E1E4D63A76366E8A9DE7CA729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXiEX0g4jkpDtUj3tQ5DWxLl X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D2CAB2036E16D1FA59166DC30EFC42434274CEFED1673C562683ABF942079399BFB559BB5D741EB966A65DFF43FF7BE03240331F90058701C67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH 04/20] net.box: remove decode_push from method_decoder table X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladimir Davydov via Tarantool-patches Reply-To: Vladimir Davydov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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