Skip to content

Commit

Permalink
jay's suggestion on pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Jun 18, 2024
1 parent 6117689 commit cf9ebe3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protocol/streaming/grpc/grpc_streaming_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ func (sm *GrpcStreamingManagerImpl) Subscribe(
),
"err", err,
)
sm.Lock()
delete(sm.orderbookSubscriptions, subscription.subscriptionId)
sm.Unlock()
// Break out of the loop, stopping this goroutine.
// The channel will fill up and the main thread will prune the subscription.
break
}
}
Expand Down

0 comments on commit cf9ebe3

Please sign in to comment.