The peer config obtained in the loop is a copy. Modifying it does not change the actual config which is then written to disk. Therefore I call MustRemovePeer and MustAddPeer to actually modify the config before saving.
I have no idea why I did not notice it while testing. Noticed it in production :smile:
The peer config obtained in the loop is a copy. Modifying it does not change the actual config which is then written to disk. Therefore I call
MustRemovePeer
andMustAddPeer
to actually modify the config before saving.I have no idea why I did not notice it while testing. Noticed it in production :smile: