]> Sergey Matveev's repositories - btrtrc.git/blobdiff - metainfo/piece-length.go
gofumpt
[btrtrc.git] / metainfo / piece-length.go
index 9835dc5b2fbeae4c287abe5803fccd5b932ba8f3..183b4d86ff4196626c75cff62b3c878f98c1871c 100644 (file)
 package metainfo
 
 // For more context on why these numbers, see http://wiki.vuze.com/w/Torrent_Piece_Size
-const minimumPieceLength = 16 * 1024
-const targetPieceCountLog2 = 10
-const targetPieceCountMin = 1 << targetPieceCountLog2
+const (
+       minimumPieceLength   = 16 * 1024
+       targetPieceCountLog2 = 10
+       targetPieceCountMin  = 1 << targetPieceCountLog2
+)
 
 // Target piece count should be < targetPieceCountMax
 const targetPieceCountMax = targetPieceCountMin << 1