Closed olegrok closed 6 years ago
@olegrok touch
method need to be changed accordingly, yep?
Can you add a test case for both *ttl queue drivers (tests seems to be quite straighforward and that should not be a problem).
@Totktonada
No, touch
works correctly. I sought correct behavior using touch
before release
.
I hope I can add tests a bit later
touch
has increment
(delta
) argument in seconds according to README and now it is just added to the ttl
value of a task. release
after your patch adds seconds * 10^6 to ttl
value of a task. I think external API should use seconds and internal representation should use microseconds.
@Totktonada I added tests
Yes, internal representation of touch uses microseconds. And touch works correctly. See line 116 in abstract.lua
@olegrok Thanks! I got it, touch
really works correctly. Now we have seconds for delay
in release
and microseconds for delta
in touch
in an API for drivers, but seconds everywhere in user-visible API. I think possible refactoring can go outside of scope on this PR.
LGTM. @olegrok, please proceed with merging it into master (squash + fast-forward / no squash + fast-forward / squash + merge commit / no squash + merge commit as you wish).
There are things I want to bring into focus as outcome:
Close: https://github.com/tarantool/queue/issues/80