Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Ensure there's only one request per topic per consumer instance out at a given time #3
Without this, you get errors that look like:
[Error: Request returned status code 500 but it was not in the accepted list. The REST API responded with the following message: Another request is in progress for consumer "test:test1". Request may be retried when response is received for the previous request.]
…t a given time Add `_topicGetMap` to ConsumerInstance. Every time `ConsumerInstance.get()` is issued - keep track of the promise for that topic. If a new get is issued for the same topic, return the existing promise. Do necessary cleanup when request is finished