-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
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].
abhakhi
Metadata
Metadata
Assignees
Labels
No labels