Increase ticker memoized interval (#195)

* Increased ticker memoized interval

* Fix standard styling issues
This commit is contained in:
Rafael Taranto 2018-10-26 19:30:33 -03:00 committed by Josh Harvey
parent 771eded655
commit 3cffbedd9a

View file

@ -5,7 +5,7 @@ const logger = require('./logger')
const lastRate = {}
const FETCH_INTERVAL = 10000
const FETCH_INTERVAL = 60000
function _getRates (settings, fiatCode, cryptoCode) {
return Promise.resolve()
@ -39,4 +39,4 @@ const getRates = mem(_getRates, {
cacheKey: (settings, fiatCode, cryptoCode) => JSON.stringify([fiatCode, cryptoCode])
})
module.exports = {getRates}
module.exports = { getRates }