Remove commented out atomic calls

pull/1557/head
Dmitry K 2023-03-21 10:16:13 +03:00 committed by Jack Christensen
parent 009a377028
commit 34e3013153
1 changed files with 0 additions and 2 deletions

View File

@ -181,12 +181,10 @@ func (c *NetConn) SetBlockingMode(blocking bool) error {
// Revert counters inc/dec in case of error
if blocking {
c.nbOperCnt++
//c.nbOperCnt.Add(1)
return fmt.Errorf("cannot set socket to blocking mode: %w", retErr)
} else {
c.nbOperCnt--
//c.nbOperCnt.Add(-1)
return fmt.Errorf("cannot set socket to non-blocking mode: %w", retErr)
}