1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 18:10:49 +09:00

GO-3886 remove mutex

This commit is contained in:
Roman Khafizianov 2024-09-17 18:18:07 +02:00
parent f8dfba81ee
commit e8fb4a9d10
No known key found for this signature in database
GPG key ID: F07A7D55A2684852

View file

@ -46,7 +46,6 @@ type localDiscovery struct {
notifier Notifier
drpcServer clientserver.ClientServer
manualStart bool
m sync.Mutex
hookMu sync.Mutex
hookState DiscoveryPossibility
@ -116,8 +115,6 @@ func (l *localDiscovery) refreshInterfaces() {
}
func (l *localDiscovery) Start() (err error) {
l.m.Lock()
defer l.m.Unlock()
if !l.drpcServer.ServerStarted() {
l.notifyP2PPossibilityState(DiscoveryNoInterfaces)
return