]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Rename connection.downloadedChunk -> receiveChunk
authorMatt Joiner <anacrolix@gmail.com>
Tue, 22 Nov 2016 03:18:09 +0000 (14:18 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 22 Nov 2016 03:18:09 +0000 (14:18 +1100)
connection.go

index 7eb9ec3572a76bc56cecd4f48abd8f5643edfc84..5493714bdabee9b177b031e1f22ab56088db05ca 100644 (file)
@@ -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)