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:
parent
f8dfba81ee
commit
e8fb4a9d10
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue