]> Sergey Matveev's repositories - btrtrc.git/blobdiff - misc.go
Merge all our global consts and vars into global.go
[btrtrc.git] / misc.go
diff --git a/misc.go b/misc.go
index 37283ee106a4d21b6cb7305c812ff9c6fb970682..42a65fe7d27314fec3244c225d3be85f23334951 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -1,26 +1,12 @@
 package torrent
 
 import (
-       "crypto"
        "errors"
-       "time"
 
        "github.com/anacrolix/torrent/metainfo"
        pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
-const (
-       pieceHash        = crypto.SHA1
-       maxRequests      = 250    // Maximum pending requests we allow peers to send us.
-       defaultChunkSize = 0x4000 // 16KiB
-       // Peer ID client identifier prefix. We'll update this occasionally to
-       // reflect changes to client behaviour that other clients may depend on.
-       // Also see `extendedHandshakeClientVersion`.
-       bep20              = "-GT0001-"
-       nominalDialTimeout = time.Second * 30
-       minDialTimeout     = 5 * time.Second
-)
-
 type chunkSpec struct {
        Begin, Length pp.Integer
 }