spam log removal; mobile share fixes

This commit is contained in:
tim
2025-04-26 17:51:20 -04:00
parent 916c23e092
commit a1bbb17b5d
19 changed files with 77 additions and 46 deletions

View File

@@ -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])
}