spam log removal; mobile share fixes
This commit is contained in:
@@ -10,7 +10,7 @@ export function subOHLC( chainId, pool, period ) {
|
||||
// console.log('subOHLC', chainId, pool, period, ckey, ohlcSubCounts[ckey])
|
||||
if (!(ckey in ohlcSubCounts) || ohlcSubCounts[ckey] === 0) {
|
||||
ohlcSubCounts[ckey] = 1
|
||||
console.log('subscribing OHLCs', chainId, key)
|
||||
// console.log('subscribing OHLCs', chainId, key)
|
||||
socket.emit('subOHLCs', chainId, [key])
|
||||
} else
|
||||
ohlcSubCounts[ckey]++
|
||||
@@ -30,7 +30,7 @@ export function refreshOHLCSubs() {
|
||||
}
|
||||
keys.push(`${pool}|${period}`)
|
||||
}
|
||||
console.log('refreshing OHLC subs', keys)
|
||||
// console.log('refreshing OHLC subs', keys)
|
||||
socket.emit('subOHLCs', chainId, keys)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ export function unsubOHLC( chainId, pool, period ) {
|
||||
} else {
|
||||
ohlcSubCounts[ckey]--
|
||||
if (ohlcSubCounts[ckey] === 0) {
|
||||
console.log('unsubscribing OHLCs', chainId, key)
|
||||
// console.log('unsubscribing OHLCs', chainId, key)
|
||||
// noinspection JSCheckFunctionSignatures
|
||||
socket.emit('unsubOHLCs', chainId, [key])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user