From f5c03696f731ce161815bdeada98b3dfecd86efd Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 12 Sep 2013 09:29:42 -0500 Subject: [PATCH] Remove relay log message and update comment. --- peer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/peer.go b/peer.go index 7a3aa30f..4edf10df 100644 --- a/peer.go +++ b/peer.go @@ -958,8 +958,8 @@ out: continue } - // Create a new inventory message, populate it with as - // much per + // Create and send as many inv messages as needed to + // drain the inventory send queue. invMsg := btcwire.NewMsgInv() for e := p.invSendQueue.Front(); e != nil; e = p.invSendQueue.Front() { iv := p.invSendQueue.Remove(e).(*btcwire.InvVect) @@ -981,7 +981,6 @@ out: p.addKnownInventory(iv) } if len(invMsg.InvList) > 0 { - log.Infof("Relaying %d inv to %v", len(invMsg.InvList), p.conn.RemoteAddr()) p.writeMessage(invMsg) }