Chore: Missed deprecations due to overly broad lint exclusion (#59732)

This commit is contained in:
Kyle Brandt
2022-12-14 12:32:45 +01:00
committed by GitHub
parent cea5e6589d
commit 55d2d872ec
16 changed files with 71 additions and 51 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ func (mg *Migrator) InTransaction(callback dbTransactionFunc) error {
}
func casRestoreOnErr(lock *atomic.Bool, o, n bool, casErr error, f func(LockCfg) error, lockCfg LockCfg) error {
if !lock.CAS(o, n) {
if !lock.CompareAndSwap(o, n) {
return casErr
}
if err := f(lockCfg); err != nil {