Skip to content

Commit

Permalink
Fixed construction of a Netbird GroupName from a PeerId or `Clust…
Browse files Browse the repository at this point in the history
…erId`.
  • Loading branch information
kKdH committed Jan 24, 2024
1 parent 660c898 commit 3ce7696
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ impl TryFrom<String> for GroupName {
impl From<&GroupName> for String {
fn from(value: &GroupName) -> Self {
match value {
GroupName::Peer(id) => format!("{}{}", GroupName::PEER_GROUP_PREFIX, id),
GroupName::Cluster(id) => format!("{}{}", GroupName::CLUSTER_GROUP_PREFIX, id),
GroupName::Peer(id) => format!("{}{}", GroupName::PEER_GROUP_PREFIX, id.0),
GroupName::Cluster(id) => format!("{}{}", GroupName::CLUSTER_GROUP_PREFIX, id.0),
GroupName::Other(name) => name.to_owned(),
}
}
Expand Down

0 comments on commit 3ce7696

Please sign in to comment.