Skip to content

Commit

Permalink
Fix duplicated code from bad cherry-pick conflict resolution. (#1208)
Browse files Browse the repository at this point in the history
This increment was moved lower down in the function, but not removed here in the conflict resolution in #1192.
  • Loading branch information
Or Neeman authored Nov 3, 2020
1 parent 93f4ac5 commit 75c938d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,9 +938,6 @@ running:
purpose := static[c.node.ID()].Add(trusted[c.node.ID()])
p := srv.launchPeer(c, purpose)
peers[c.node.ID()] = p
if p.Inbound() {
inboundCount++
}
srv.log.Debug("Adding p2p peer", "peercount", len(peers), "id", p.ID(), "conn", c.flags, "addr", p.RemoteAddr(), "name", truncateName(c.name))
srv.dialsched.peerAdded(c)
if conn, ok := c.fd.(*meteredConn); ok {
Expand Down

0 comments on commit 75c938d

Please sign in to comment.