Skip to content

Commit

Permalink
FIX: Use redis BLMOVE instead of BRPOPLPUSH (deprecated)
Browse files Browse the repository at this point in the history
Fixes #1827

Signed-off-by: Sebastian Waldbauer <[email protected]>
  • Loading branch information
waldbauer-certat committed Feb 3, 2022
1 parent 8d1c926 commit 54305be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions intelmq/lib/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ def _receive(self) -> bytes:
else:
break
if not retval:
retval = self.pipe.brpoplpush(self.source_queue,
self.internal_queue, 0)
retval = self.pipe.blmove(self.source_queue, self.internal_queue, 0, 'RIGHT', 'LEFT')
except Exception as exc:
raise exceptions.PipelineError(exc)
else:
Expand Down

0 comments on commit 54305be

Please sign in to comment.