mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-04 08:06:37 +00:00
Fix lint
This commit is contained in:
@@ -988,9 +988,9 @@ func (d *Status) notifyPeerStateChangeListeners(peerID string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, sub := range subs {
|
for _, sub := range subs {
|
||||||
select {
|
// block the write because we do not want to miss notification
|
||||||
case sub.eventsChan <- struct{}{}:
|
// must have to be sure we will run the GetPeerState() on separated thread
|
||||||
}
|
sub.eventsChan <- struct{}{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user