Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Feb 25, 2024
1 parent 53a1627 commit 4b701fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions peer_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ func (c *PeerClient) getPeerRateLimitsBatch(ctx context.Context, r *RateLimitReq
metricBatchQueueLength.WithLabelValues(peerAddr).Set(float64(len(c.queue)))

if c.queueClosed.Load() {
// this check prevents "panic: send on close channel"
return nil, grpc.ErrClientConnClosing

Check failure on line 255 in peer_client.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

SA1019: grpc.ErrClientConnClosing is deprecated: this error should not be relied upon by users; use the status code of Canceled instead. (staticcheck)

Check failure on line 255 in peer_client.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, ubuntu-latest)

SA1019: grpc.ErrClientConnClosing is deprecated: this error should not be relied upon by users; use the status code of Canceled instead. (staticcheck)
}

Expand Down

0 comments on commit 4b701fb

Please sign in to comment.