From 402e4e1665e1335e8ffaff986585d35a4a8b4b5d Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 30 Dec 2019 10:23:12 -0500 Subject: [PATCH] Correct the size of a piece Previously confused piece vs block --- p2p/p2p.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/p2p.go b/p2p/p2p.go index 25c0c3c..6b53718 100644 --- a/p2p/p2p.go +++ b/p2p/p2p.go @@ -108,7 +108,7 @@ func attemptDownloadPiece(c *client, pw *pieceWork) ([]byte, error) { } // Setting a deadline helps get unresponsive peers unstuck. - // 30 seconds is more than enough time to download 16 KB + // 30 seconds is more than enough time to download a 262 KB piece c.conn.SetDeadline(time.Now().Add(30 * time.Second)) defer c.conn.SetDeadline(time.Time{}) // Disable the deadline