Skip to content

Commit

Permalink
Update endpoint/endpoint.go
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Bailey <yurrriq@users.noreply.github.com>
  • Loading branch information
leonardocaylent and yurrriq committed Apr 4, 2024
1 parent 6066b70 commit 3ca4d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ type DNSEndpointList struct {
Items []DNSEndpoint `json:"items"`
}

// Apply filter based on EndpointKey (using DNSName, RecordType & SetIdentifier)
// RemoveDuplicates returns a slice holding the unique endpoints.
func RemoveDuplicates(filtered []*Endpoint) []*Endpoint {
visited := make(map[EndpointKey]struct{})
result := []*Endpoint{}
Expand Down

0 comments on commit 3ca4d02

Please sign in to comment.