1kasa opened a new pull request, #2962:
URL: https://github.com/apache/dubbo-go/pull/2962

   refactor: replace deprecated CAS with CompareAndSwap
   
   The referenced atomic package is marked:
   ```
   // CAS is an atomic compare-and-swap for bool values.
   //
   // Deprecated: Use CompareAndSwap.
   func (x *Bool) CAS(old, new bool) (swapped bool) {
        return x.CompareAndSwap(old, new)
   }
   
   // CompareAndSwap is an atomic compare-and-swap for bool values.
   func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) {
        return x.v.CompareAndSwap(boolToInt(old), boolToInt(new))
   }
   ```
   
   Make a safe substitution


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to