Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@priyanshiiit
Copy link
Contributor

Fix #740

Task
Previously default was 1 minute (1000 * 60), changed default to 1 hour, and made it configurable.

Copy link
Member

@softsimon softsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's an interval a config name like PRICE_FEED_UPDATE_INTERVAL is probably better

Also better if the config is expressed second.. so do * 1000 to the variable in the setInterval function, so the default is 3600

@softsimon softsimon added this to the v2.2.2 milestone Aug 28, 2021
@priyanshiiit
Copy link
Contributor Author

Hi @softsimon!
Thanks for the review.
I've made the requested changes.

@priyanshiiit priyanshiiit requested a review from softsimon August 29, 2021 04:55
@softsimon softsimon merged commit 2e8ecc7 into mempool:master Aug 29, 2021
@priyanshiiit priyanshiiit deleted the priceFeed branch August 30, 2021 08:20
@softsimon softsimon linked an issue Sep 4, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make price feed update configurable

2 participants