Skip to content

Commit 6596ea1

Browse files
committed
fix: remove outdated comment
1 parent fe142a8 commit 6596ea1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

registry/txt.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,13 @@ func (im *TXTRegistry) Records(ctx context.Context) ([]*endpoint.Endpoint, error
276276
return endpoints, nil
277277
}
278278

279-
// generateTXTRecord generates TXT records in either both formats (old and new) or new format only,
280-
// depending on the newFormatOnly configuration. The old format is maintained for backwards
281-
// compatibility but can be disabled to reduce the number of DNS records.
282279
func (im *TXTRegistry) generateTXTRecord(r *endpoint.Endpoint) []*endpoint.Endpoint {
283280
return im.generateTXTRecordWithFilter(r, func(ep *endpoint.Endpoint) bool { return true })
284281
}
285282

286283
func (im *TXTRegistry) generateTXTRecordWithFilter(r *endpoint.Endpoint, filter func(*endpoint.Endpoint) bool) []*endpoint.Endpoint {
287284
endpoints := make([]*endpoint.Endpoint, 0)
288285

289-
// Always create new format record
290286
recordType := r.RecordType
291287
// AWS Alias records are encoded as type "cname"
292288
if isAlias, found := r.GetProviderSpecificProperty("alias"); found && isAlias == "true" && recordType == endpoint.RecordTypeA {

0 commit comments

Comments
 (0)