Commit 93c74b0a by ken

减少延时

parent f22ca9a7
...@@ -219,6 +219,7 @@ function getBalanceByRest() { ...@@ -219,6 +219,7 @@ function getBalanceByRest() {
function run() { function run() {
subscribe(); subscribe();
const depthInterval = Math.max(60 * 1000 / (850 * ips.length / observerSymbol.length), 300); const depthInterval = Math.max(60 * 1000 / (850 * ips.length / observerSymbol.length), 300);
console.log(depthInterval);
setInterval(() => { setInterval(() => {
for (const symbol of observerSymbol) { for (const symbol of observerSymbol) {
depthByRest(symbol); depthByRest(symbol);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment