Skip to content

Commit 9af7f0a

Browse files
committed
fix lint
1 parent 14d4fca commit 9af7f0a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

crud/common/call.lua

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

43
local call_cache = require('crud.common.call_cache')
54
local dev_checks = require('crud.common.dev_checks')
@@ -112,7 +111,8 @@ end
112111

113112
--- Executes a vshard call and retries once after performing recovery actions
114113
--- like bucket cache reset, destination redirect (for single calls), or master discovery.
115-
local function call_with_retry_and_recovery(vshard_router, replicaset, method, func_name, func_args, call_opts, is_single_call)
114+
local function call_with_retry_and_recovery(vshard_router,
115+
replicaset, method, func_name, func_args, call_opts, is_single_call)
116116
local func_args_ext = utils.append_array({ box.session.effective_user(), func_name }, func_args)
117117

118118
-- In case cluster was just bootstrapped with auto master discovery,
@@ -122,7 +122,7 @@ local function call_with_retry_and_recovery(vshard_router, replicaset, method, f
122122
if err == nil then
123123
return resp, err
124124
end
125-
125+
126126
-- This is a partial copy of error handling from vshard.router.router_call_impl()
127127
-- It is much simpler mostly because bucket_set() can't be accessed from outside vshard.
128128
-- may be we cant get this -- todo: check

crud/common/sharding/bucket_ref_unref.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ local M = {
2020
}
2121

2222
local function make_bucket_ref_err(bucket_id, vshard_ref_err)
23-
local err = M.BucketRefError:new(M.BucketRefError:new("failed bucket_ref: %s, bucket_id: %s", vshard_ref_err.name, bucket_id))
23+
local err = M.BucketRefError:new(M.BucketRefError:new(
24+
"failed bucket_ref: %s, bucket_id: %s",
25+
vshard_ref_err.name,
26+
bucket_id
27+
))
2428
err.bucket_ref_errs = {
2529
{
2630
bucket_id = bucket_id,
@@ -117,7 +121,7 @@ function M._bucket_unrefrw_many(bucket_ids)
117121
return true
118122
end
119123

120-
--- _fast implements module logic for fast mode
124+
--- _fast implements module logic for fast mode
121125
function M._fast()
122126
return true
123127
end

0 commit comments

Comments
 (0)