diff --git a/adapters/outbound/urltest.go b/adapters/outbound/urltest.go index ecca07b7..6ea6dd40 100644 --- a/adapters/outbound/urltest.go +++ b/adapters/outbound/urltest.go @@ -92,7 +92,7 @@ func (u *URLTest) fallback() { } func (u *URLTest) speedTest() { - if atomic.CompareAndSwapInt32(&u.once, 0, 1) { + if !atomic.CompareAndSwapInt32(&u.once, 0, 1) { return } defer atomic.StoreInt32(&u.once, 0)