Skip to content

Commit

Permalink
fix lintushiush
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Oct 16, 2024
1 parent 81a8dca commit 58998e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/chainlib/consumer_websocket_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (cwm *ConsumerWebsocketManager) ListenToMessages() {

// Check rate limit is met
currentRequestsPerSecond := requestsPerSecond.Add(1)
if (cwm.headerRateLimit > 0 && currentRequestsPerSecond > uint64(cwm.headerRateLimit)) ||
if (cwm.headerRateLimit > 0 && currentRequestsPerSecond > cwm.headerRateLimit) ||
(WebSocketRateLimit > 0 && currentRequestsPerSecond > uint64(WebSocketRateLimit)) {
rateLimitResponse, err := cwm.handleRateLimitReached(msg)
if err == nil {
Expand Down

0 comments on commit 58998e9

Please sign in to comment.