mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-04-18 08:06:28 +03:00
Lint in CI
This commit is contained in:
@@ -86,7 +86,7 @@ func (w *Writer) Do(db *sql.DB, txn *sql.Tx, f func(txn *sql.Tx) error) error {
|
||||
}
|
||||
|
||||
func (w *Writer) run() {
|
||||
if !w.running.CAS(false, true) {
|
||||
if !w.running.CompareAndSwap(false, true) {
|
||||
return
|
||||
}
|
||||
defer w.running.Store(false)
|
||||
|
||||
Reference in New Issue
Block a user