I’m not sure if this is intended behaviour or not:
I just activated peer discovery via DHT random walk. My nodes find each other as wanted. I log every new connection and the number of connections in the connectionManager.
The nodes repeatedly create connections to each other. I have 4 nodes in total and expect each to have 3 connections but after some minutes I already have 30 connections per node.
Is this intended? If so: Can I prevent multiple connections to each node?
Edit: I added the code, so that you can try it yourself: https://github.com/Strernd/libp2p-example