@@ -249,17 +249,17 @@ local function set(self, key, val, attr)
249
249
250
250
local prev_kv
251
251
if attr .prev_kv then
252
- prev_kv = attr .prev_kv and ' true' or ' false'
252
+ prev_kv = attr .prev_kv and true or false
253
253
end
254
254
255
255
local ignore_value
256
256
if attr .ignore_value then
257
- ignore_value = attr .ignore_value and ' true' or ' false'
257
+ ignore_value = attr .ignore_value and true or false
258
258
end
259
259
260
260
local ignore_lease
261
261
if attr .ignore_lease then
262
- ignore_lease = attr .ignore_lease and ' true' or ' false'
262
+ ignore_lease = attr .ignore_lease and true or false
263
263
end
264
264
265
265
local opts = {
@@ -326,17 +326,17 @@ local function get(self, key, attr)
326
326
327
327
local serializable
328
328
if attr .serializable then
329
- serializable = attr .serializable and ' true' or ' false'
329
+ serializable = attr .serializable and true or false
330
330
end
331
331
332
332
local keys_only
333
333
if attr .keys_only then
334
- keys_only = attr .keys_only and ' true' or ' false'
334
+ keys_only = attr .keys_only and true or false
335
335
end
336
336
337
337
local count_only
338
338
if attr .count_only then
339
- count_only = attr .count_only and ' true' or ' false'
339
+ count_only = attr .count_only and true or false
340
340
end
341
341
342
342
local min_mod_revision
@@ -406,7 +406,7 @@ local function delete(self, key, attr)
406
406
407
407
local prev_kv
408
408
if attr .prev_kv then
409
- prev_kv = attr .prev_kv and ' true' or ' false'
409
+ prev_kv = attr .prev_kv and true or false
410
410
end
411
411
412
412
key = encode_base64 (key )
@@ -648,7 +648,7 @@ function _M.get(self, key, opts)
648
648
attr .timeout = opts and opts .timeout
649
649
attr .revision = opts and opts .revision
650
650
651
- return get (self , key )
651
+ return get (self , key , attr )
652
652
end
653
653
654
654
function _M .watch (self , key , opts )
0 commit comments