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

@ -5,8 +5,9 @@ import (
"sync"
"time"
"github.com/Dreamacro/clash/common/atomic"
"github.com/shirou/gopsutil/v3/process"
"go.uber.org/atomic"
)
var DefaultManager *Manager

View File

@ -4,12 +4,12 @@ import (
"net"
"time"
"github.com/Dreamacro/clash/common/atomic"
"github.com/Dreamacro/clash/common/buf"
"github.com/Dreamacro/clash/common/utils"
C "github.com/Dreamacro/clash/constant"
"github.com/gofrs/uuid/v5"
"go.uber.org/atomic"
)
type tracker interface {