You've already forked torrent-client
mirror of
https://github.com/veggiedefender/torrent-client.git
synced 2025-11-06 09:29:16 +02:00
Fix unit in comment about block size
This commit is contained in:
@@ -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 16 KB
|
||||
c.conn.SetDeadline(time.Now().Add(30 * time.Second))
|
||||
defer c.conn.SetDeadline(time.Time{}) // Disable the deadline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user