Skip to content

touch() throws an error on nil interval #57

@rybakit

Description

@rybakit

According to the documentation, nil increments should be handled w/o errors when passed to touch(). Currently, it's not the case:

foo = queue.create_tube('foo', 'fifottl')
foo:put('touch_ttr_15', {ttr=15})
foo:take(.1)
foo:touch(0, msgpack.NULL)
foo:touch(0, nil)

...

- error: '/usr/local/share/lua/5.1/queue/abstract.lua:86: attempt to compare ''void
*'' with ''number'''

So, either documentation or implementation should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions