aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2023-08-26 12:49:17 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-26 12:49:17 +0200
commit0e99e64ee836adc5a3c4b35a0d8148900c2e7898 (patch)
tree74ed52ccb6d24a75f6e25d0f52b62e3050bef387 /client.go
parentfix round2_32, split round2 tests because they depend on sizeof int at compil... (diff)
downloadfasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.tar.gz
fasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.tar.bz2
fasthttp-0e99e64ee836adc5a3c4b35a0d8148900c2e7898.zip
Update golangci-lint and gosec (#1609)v1.49.0
Diffstat (limited to 'client.go')
-rw-r--r--client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.go b/client.go
index 5223031..ae005d7 100644
--- a/client.go
+++ b/client.go
@@ -581,6 +581,7 @@ func (c *Client) mCleaner(m map[string]*HostClient) {
c.mLock.Lock()
for k, v := range m {
v.connsLock.Lock()
+ /* #nosec G601 */
if v.connsCount == 0 && atomic.LoadInt32(&v.pendingClientRequests) == 0 {
delete(m, k)
}