matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
460 stars 149 forks source link

Fix Redis <=6.2 throwing errors when trying to clear the command queue in pooling mode. #1763

Closed Half-Shot closed 11 months ago

Half-Shot commented 11 months ago

Fixes #1761

Ultimately the problem here is that we failed to specify a minimum Redis version. If you are using less than 6.2, you won't be able to clear the command stream effectively. To get around this for now, we're reverting to previous behaviour of just setting an absolute maximum message count for the stream when running on older Redis versions.