mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-01 08:21:16 +01:00
Add HasPeers function to group
This commit is contained in:
parent
1b28d1dfbc
commit
1012c2f990
@ -44,3 +44,8 @@ func (g *Group) Copy() *Group {
|
|||||||
copy(group.Peers, g.Peers)
|
copy(group.Peers, g.Peers)
|
||||||
return group
|
return group
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HasPeers checks if the group has any peers.
|
||||||
|
func (g *Group) HasPeers() bool {
|
||||||
|
return len(g.Peers) > 0
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user