From 13a8a8e7e39e53564956ae1f98ac98501053deed Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Thu, 3 Oct 2013 01:39:31 +0100 Subject: [PATCH] use directionString() instead of handrollong. --- blockmanager.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/blockmanager.go b/blockmanager.go index b783fb3d..958632e6 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -137,14 +137,8 @@ func (b *blockManager) handleNewPeerMsg(peers *list.List, p *peer) { return } - var boundness string - if p.inbound { - boundness = "inbound" - } else { - boundness = "outbound" - } - - log.Infof("[BMGR] New valid peer %s (%s)", p.addr, boundness) + log.Infof("[BMGR] New valid peer %s (%s)", p.addr, + directionString(p.inbound)) // The peer is not a candidate for sync if it's not a full node. if p.services&btcwire.SFNodeNetwork != btcwire.SFNodeNetwork {