Skip to content

RedisStorage seems to be broken #155

Open
@allo-

Description

@allo-

When using RedisStorage, I get the error: unsupported operand type(s) for -: 'Pipeline' and 'int' at

pub_prev_id = str(e.id - 1)

Testing it a bit, I think this line is wrong:

event_id = pipe.incr("event_counter:" + channel)

and the results of the pipe are only available after pipe.execute(). I wanted to try event_id, _ = pipe.execute(), but the data in the pipe.setex call already needs the event_id.

Printing the result of pipe.execute without changing other code gives for example [2, True].

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