chore: using sync/atomic replace uber/atomic

This commit is contained in:
wwqgtxx
2023-04-22 15:37:57 +08:00
parent c6ecbb25dc
commit 40da1911d9
17 changed files with 288 additions and 31 deletions

View File

@ -4,14 +4,13 @@ import (
"context"
"net"
"github.com/Dreamacro/clash/common/atomic"
"github.com/Dreamacro/clash/component/resolver"
"go.uber.org/atomic"
)
var (
DefaultOptions []Option
DefaultInterface = atomic.NewString("")
DefaultInterface = atomic.NewTypedValue[string]("")
DefaultRoutingMark = atomic.NewInt32(0)
)

View File

@ -1,7 +1,7 @@
package profile
import (
"go.uber.org/atomic"
"github.com/Dreamacro/clash/common/atomic"
)
// StoreSelected is a global switch for storing selected proxy to cache