Move dns label generation to store (#552)

This commit is contained in:
Maycon Santos
2022-11-08 10:31:34 +01:00
committed by GitHub
parent a768a0aa8a
commit 7e262572a4
2 changed files with 6 additions and 6 deletions

View File

@@ -384,12 +384,6 @@ func BuildManager(store Store, peersUpdateManager *PeersUpdateManager, idpManage
shouldSave = true
}
existingLabels := account.getPeerDNSLabels()
if len(existingLabels) != len(account.Peers) {
addPeerLabelsToAccount(account, existingLabels)
shouldSave = true
}
if shouldSave {
err = store.SaveAccount(account)
if err != nil {