Skip to content

Commit 9c801ff

Browse files
piotrppintsized
authored andcommitted
Style: make definition of module functions consistent
1 parent e830162 commit 9c801ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/resty/redis/connector.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ function _M.connect_to_host(self, host)
381381
end
382382

383383

384-
local function set_keepalive(self, redis)
384+
function _M.set_keepalive(self, redis)
385385
-- Restore connection to "NORMAL" before putting into keepalive pool,
386386
-- ignoring any errors.
387387
-- Proxied Redis does not support transactions.
@@ -394,8 +394,6 @@ local function set_keepalive(self, redis)
394394
config.keepalive_timeout, config.keepalive_poolsize
395395
)
396396
end
397-
_M.set_keepalive = set_keepalive
398-
399397

400398

401399
-- Deprecated: use config table in new() or connect() instead.

0 commit comments

Comments
 (0)