Skip to content

Commit 7730a5c

Browse files
committed
Fix luachecks warnings
1 parent 9b79a68 commit 7730a5c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

crud/common/call.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local errors = require('errors')
2+
local vshard = require('vshard')
23

34
local call_cache = require('crud.common.call_cache')
45
local dev_checks = require('crud.common.dev_checks')

crud/select/merger.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ local function fetch_chunk(context, state)
173173
next_func_args[4].after_tuple = cursor.after_tuple
174174
local mode = "read"
175175
local bucket_ids = {}
176-
local func_args_ext = utils.append_array({ box.session.effective_user(), bucket_ids, mode, func_name }, next_func_args)
176+
local func_args_ext = utils.append_array(
177+
{ box.session.effective_user(), bucket_ids, mode, func_name },
178+
next_func_args)
177179

178180
if context.readview then
179181
next_state = {future = context.future_replica.conn:call("_crud.call_on_storage",
@@ -206,7 +208,9 @@ local function new(vshard_router, replicasets, space, index_id, func_name, func_
206208
local net_box_opts = {is_async = true, buffer = buf,
207209
skip_header = utils.tarantool_supports_netbox_skip_header_option() or nil}
208210
local bucket_ids = {}
209-
local func_args_ext = utils.append_array({ box.session.effective_user(), bucket_ids, mode, func_name }, func_args)
211+
local func_args_ext = utils.append_array(
212+
{ box.session.effective_user(), bucket_ids, mode, func_name },
213+
func_args)
210214
local future = replicaset[vshard_call_name](replicaset, "_crud.call_on_storage",
211215
func_args_ext, net_box_opts)
212216

@@ -284,7 +288,9 @@ local function new_readview(vshard_router, replicasets, readview_info, space, in
284288
func_args[4].readview_id = replicaset_info.id
285289
local mode = "read"
286290
local bucket_ids = {}
287-
local func_args_ext = utils.append_array({ box.session.effective_user(), bucket_ids, mode, func_name }, func_args)
291+
local func_args_ext = utils.append_array(
292+
{ box.session.effective_user(), bucket_ids, mode, func_name },
293+
func_args)
288294
local future = replica.conn:call("_crud.call_on_storage",
289295
func_args_ext, net_box_opts)
290296

test/unit/privileges_test.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ g.before_all(function()
1717
end)
1818

1919
g.test_prepend_current_user_smoke = function()
20-
local res = call.storage_api.call_on_storage(box.session.effective_user(), {}, "read", "unittestfunc", {"too", "foo"})
20+
local res = call.storage_api.call_on_storage(
21+
box.session.effective_user(), {}, "read", "unittestfunc", {"too", "foo"})
2122
t.assert_equals(res, {"too", "foo"})
2223
end
2324

0 commit comments

Comments
 (0)