mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/devp2p: ensure TTL changes are applied on existing records
This commit is contained in:
parent
a99e946e69
commit
5a1ee3405e
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ func (c *route53Client) computeChanges(name string, records map[string]string, e
|
|||
// Entry is unknown, push a new one
|
||||
log.Info(fmt.Sprintf("Creating %s = %q", path, val))
|
||||
changes = append(changes, newTXTChange("CREATE", path, ttl, splitTXT(val)))
|
||||
} else if prevValue != val {
|
||||
} else if prevValue != val || prevRecords.ttl != ttl {
|
||||
// Entry already exists, only change its content.
|
||||
log.Info(fmt.Sprintf("Updating %s from %q to %q", path, prevValue, val))
|
||||
changes = append(changes, newTXTChange("UPSERT", path, ttl, splitTXT(val)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue