Skip to content

Commit 5b6c92c

Browse files
committed
fix: remove outdated comment
1 parent e22ceab commit 5b6c92c

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
@@ -285,17 +285,13 @@ func (im *TXTRegistry) Records(ctx context.Context) ([]*endpoint.Endpoint, error
285285
return endpoints, nil
286286
}
287287

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

295292
func (im *TXTRegistry) generateTXTRecordWithFilter(r *endpoint.Endpoint, filter func(*endpoint.Endpoint) bool) []*endpoint.Endpoint {
296293
endpoints := make([]*endpoint.Endpoint, 0)
297294

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

0 commit comments

Comments
 (0)