Skip to content

Commit

Permalink
fix: change setInterval to setTimeout when requesting huobi initial o…
Browse files Browse the repository at this point in the history
…b snapshot
  • Loading branch information
thaaddeus committed Dec 22, 2023
1 parent 2d57ebd commit f5f2a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realtimefeeds/huobi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class HuobiMarketDataRealTimeFeed extends RealTimeFeedBase {
return
}

setInterval(() => {
setTimeout(() => {
this.send({
id: '1',
req: `market.${symbol}.mbp.400`
Expand Down

0 comments on commit f5f2a1c

Please sign in to comment.