From 84d243afcad6beb4bbd4ecf93957b57777c9cb59 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 22 Nov 2016 14:18:09 +1100 Subject: [PATCH] Rename connection.downloadedChunk -> receiveChunk --- connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.go b/connection.go index 7eb9ec35..5493714b 100644 --- a/connection.go +++ b/connection.go @@ -780,7 +780,7 @@ func (c *connection) mainReadLoop() error { case pp.HaveNone: err = c.peerSentHaveNone() case pp.Piece: - c.downloadedChunk(&msg) + c.receiveChunk(&msg) if len(msg.Piece) == int(t.chunkSize) { t.chunkPool.Put(msg.Piece) } @@ -928,7 +928,7 @@ func (cn *connection) rw() io.ReadWriter { } // Handle a received chunk from a peer. -func (c *connection) downloadedChunk(msg *pp.Message) { +func (c *connection) receiveChunk(msg *pp.Message) { t := c.t cl := t.cl chunksReceived.Add(1) -- 2.50.0