Removed an extra random.shuffle to fix a bug where if you are subscribe to more than 1 topic, and produce to just 1 topic, at some point you will receive None for a message because it checks the same topic twice for a new message. Also added a test around the issue.
Removed an extra random.shuffle to fix a bug where if you are subscribe to more than 1 topic, and produce to just 1 topic, at some point you will receive None for a message because it checks the same topic twice for a new message. Also added a test around the issue.