Skip to content

Commit 391ac29

Browse files
committed
Trailing whitespace
1 parent 6820c58 commit 391ac29

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/resty/qless/queue.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local cjson_decode = cjson.decode
1010

1111

1212

13-
-- Object for interacting with jobs in different states in the queue. Not meant to be
13+
-- Object for interacting with jobs in different states in the queue. Not meant to be
1414
-- instantiated directly, it's accessed via queue.jobs.
1515
local _queue_jobs = {}
1616
local _queue_jobs_mt = { __index = _queue_jobs }
@@ -34,7 +34,7 @@ end
3434
function _queue_jobs.scheduled(self, start, count)
3535
return self.client:call("jobs", "scheduled", self.name, start or 0, count or 25)
3636
end
37-
37+
3838

3939
function _queue_jobs.depends(self, start, count)
4040
return self.client:call("jobs", "depends", self.name, start or 0, count or 25)
@@ -52,7 +52,7 @@ local _M = {
5252
}
5353

5454

55-
local mt = {
55+
local mt = {
5656
__index = function(t, k)
5757
if k == "heartbeat" then
5858
return _M.get_config(k)
@@ -74,7 +74,7 @@ local mt = {
7474

7575

7676
function _M.new(name, client)
77-
local self = setmetatable({
77+
local self = setmetatable({
7878
name = name,
7979
client = client,
8080
worker_name = client.worker_name,
@@ -112,7 +112,7 @@ function _M.pause(self, options)
112112
local client = self.client
113113
local res, err
114114
res, err = client:call("pause", self.name)
115-
115+
116116
if options.stop_jobs then
117117
res, err = client:call("timeout", self.jobs:running(0, -1))
118118
end
@@ -129,11 +129,11 @@ end
129129
function _M.put(self, klass, data, options)
130130
if not options then options = {} end
131131
return self.client:call(
132-
"put",
133-
self.worker_name,
134-
self.name,
135-
options.jid or self.client:generate_jid(),
136-
klass,
132+
"put",
133+
self.worker_name,
134+
self.name,
135+
options.jid or self.client:generate_jid(),
136+
klass,
137137
cjson_encode(data or {}),
138138
options.delay or 0,
139139
"priority", options.priority or 0,

0 commit comments

Comments
 (0)