Skip to content

Commit 1135bd2

Browse files
committed
internal: fixed a typo of the fiber status call
Fixed a typo of the fiber status call when processing `RELOAD_SCHEMA_TIMEOUT` in `call_reload_schema`. Before that, an error occurred in this case with description: `calling 'status' on bad self (fiber expected, got table)`.
1 parent 6de6d90 commit 1135bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crud/common/schema.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ local function call_reload_schema(replicasets)
3737
for _ = 1,replicasets_num do
3838
if channel:get(const.RELOAD_SCHEMA_TIMEOUT) == nil then
3939
for _, f in ipairs(fibers) do
40-
if fiber:status() ~= 'dead' then
40+
if f:status() ~= 'dead' then
4141
f:cancel()
4242
end
4343
end

0 commit comments

Comments
 (0)