Remove commented out atomic calls
This commit is contained in:
committed by
Jack Christensen
parent
009a377028
commit
34e3013153
@@ -181,12 +181,10 @@ func (c *NetConn) SetBlockingMode(blocking bool) error {
|
|||||||
// Revert counters inc/dec in case of error
|
// Revert counters inc/dec in case of error
|
||||||
if blocking {
|
if blocking {
|
||||||
c.nbOperCnt++
|
c.nbOperCnt++
|
||||||
//c.nbOperCnt.Add(1)
|
|
||||||
|
|
||||||
return fmt.Errorf("cannot set socket to blocking mode: %w", retErr)
|
return fmt.Errorf("cannot set socket to blocking mode: %w", retErr)
|
||||||
} else {
|
} else {
|
||||||
c.nbOperCnt--
|
c.nbOperCnt--
|
||||||
//c.nbOperCnt.Add(-1)
|
|
||||||
|
|
||||||
return fmt.Errorf("cannot set socket to non-blocking mode: %w", retErr)
|
return fmt.Errorf("cannot set socket to non-blocking mode: %w", retErr)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user