js-ceramic
js-ceramic copied to clipboard
fix: rate limit how fast anchor polling loops on small data sets
With this change, when the number of pending requests is small, we will poll each of them once per minute, which is aligned with how things used to work before we switched to the new polling system. But when the number of pending requests is large, we'll poll them as fast as possible to make sure we don't fall behind.