Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/dydxprotocol/v4-chain into …
Browse files Browse the repository at this point in the history
…wl/sa3
  • Loading branch information
dydxwill committed Aug 9, 2024
2 parents afff020 + 56fe707 commit 7da102e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions protocol/streaming/full_node_streaming_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ func (sm *FullNodeStreamingManagerImpl) AddOrderbookUpdatesToCache(
for id := range sm.orderbookSubscriptions {
sm.removeSubscription(id)
}
clear(sm.streamUpdateCache)
sm.streamUpdateCache = nil
sm.streamUpdateSubscriptionCache = nil
}
sm.EmitMetrics()
}
Expand Down Expand Up @@ -661,8 +662,8 @@ func (sm *FullNodeStreamingManagerImpl) FlushStreamUpdatesWithLock() {
}
}

clear(sm.streamUpdateCache)
clear(sm.streamUpdateSubscriptionCache)
sm.streamUpdateCache = nil
sm.streamUpdateSubscriptionCache = nil

for _, id := range idsToRemove {
sm.logger.Error(
Expand Down

0 comments on commit 7da102e

Please sign in to comment.