Skip to content

Commit

Permalink
net:remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonLi000 committed May 19, 2018
1 parent 038f778 commit fcc1536
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,11 @@ func (table *RouteTable) GetRandomPeers(pid peer.ID) []peerstore.PeerInfo {
allPeers := table.routeTable.ListPeers()
// Do not accept internal node synchronization routing requests.
if inArray(pid.Pretty(), table.internalNodeList) {
logging.VLog().Debugf("i am internal node: %s", pid.Pretty())
return []peerstore.PeerInfo{}
}

for _, v := range allPeers {
if inArray(v.Pretty(), table.internalNodeList) == false {
logging.VLog().Debugf("external peer: %s", v.Pretty())
peers = append(peers, v)
}
}
Expand Down

0 comments on commit fcc1536

Please sign in to comment.