ceramicnetwork / js-ceramic

Typescript implementation of the Ceramic protocol
http://ceramic.network
Other
414 stars 127 forks source link

fix: rate limit how fast anchor polling loops on small data sets #3218

Closed stbrody closed 5 months ago

stbrody commented 5 months ago

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.