Revert "use NodeInfo as an interface"

This reverts commit 5f7d055e6c.
This commit is contained in:
Mehmet Gurevin
2018-11-08 17:54:51 +03:00
parent 5f7d055e6c
commit 53704f7405
+1 -1
View File
@@ -394,7 +394,7 @@ func (r *PEXReactor) ensurePeers() {
if r.Switch.IsDialingOrExistingAddress(try) {
continue
}
if r.Switch.NodeInfo().ID() == try.ID {
if r.Switch.NodeInfo().ID == try.ID {
continue // we don't want to dial ourselves, usually.
}
// TODO: consider moving some checks from toDial into here