@cryptotaxi247 / kubo / commits / f354fa849

mocknet: FullMesh connects to self too.

@maybebtc thoughts on this? dialing self should be **possible**, so we should in general test that we do consider that case, but not sure if this is good to expose to clients. thoughts? Btw, on why dialing self should be possible, we may create little protocols which we may have a node connect to self, say across its interfaces to test connectivity, etc... think of it like: > server localhost:1234 & > curl localhost:1234

Juan Batiz-Benet committed Dec 17, 2014 at 11:25 UTC f354fa849eea9e45f28fd9b7d6e2c58b59eda8db
1 file changed -4
net/mock/mock.go
-4
@@ -53,10 +53,6 @@ func FullMeshConnected(ctx context.Context, n int) (Mocknet, error) {
53 nets := m.Nets()
54 for _, n1 := range nets {
55 for _, n2 := range nets {
56 - if n1 == n2 {
57 - continue
58 - }
59 -
56 if err := m.ConnectNets(n1, n2); err != nil {
57 return nil, err
58 }