Skip to content

brpoplpush function cannot accept timeout values as floats #283

@Liam2032

Description

@Liam2032

Hi,
I discovered today when using the function brpoplpush, setting a timeout with a float value will result in the returned error:
timeout is negative.
I have been able to reproduce this without issue, and this error is returned only for floats and not integer types. Additionally, when using the actual Redis package, this error is not present, and timeout values of float types are permitted. Doing some investigations, the _blocking function does state in its docstring: The timeout must be an integer, and 0 means infinite., hence, it does seem there is an implicit restriction of only integers being allowed (although this goes against the original Redis package). I think this needs to be updated to better reflect the Redis package.

Cheers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions