Someguy123 / hivefeed-js

STEEM Price Feed in Node.JS
GNU General Public License v3.0
20 stars 21 forks source link

Fix edge cases where retries would not execute. #23

Closed ShmoogleOsukami closed 2 years ago

ShmoogleOsukami commented 2 years ago

Ran into an issue where retries in some cases would not execute and would just sit there for eternity.

I've made some changes that as far as I can tell fix the issue, I'd ran some tests with various incorrect settings and retries work as intended.

In my specific case, hived.privex.com was returning a Forbidden: 403 error on start up and retry would not execute after 60 seconds. This also actually fixes the error with resolve not being defined in the scope of publishfeed.

I also added a little bit of break formatting to neaten up console output so it's easier to see individual published feeds.