]> Sergey Matveev's repositories - btrtrc.git/blobdiff - global.go
Support AllowedFast and enable fast extension
[btrtrc.git] / global.go
index 8012fe6155d1361e1b3fd975232896796ebe4f57..9855f8ac6dc99388bb4602aa5f82c61ede542684 100644 (file)
--- a/global.go
+++ b/global.go
@@ -17,7 +17,7 @@ const (
 )
 
 func defaultPeerExtensionBytes() peerExtensionBytes {
-       return newPeerExtensionBytes(ExtensionBitDHT, ExtensionBitExtended)
+       return newPeerExtensionBytes(ExtensionBitDHT, ExtensionBitExtended, ExtensionBitFast)
 }
 
 // I could move a lot of these counters to their own file, but I suspect they
@@ -27,10 +27,11 @@ var (
        unexpectedChunksReceived = expvar.NewInt("chunksReceivedUnexpected")
        chunksReceived           = expvar.NewInt("chunksReceived")
 
+       torrent = expvar.NewMap("torrent")
+
        peersAddedBySource = expvar.NewMap("peersAddedBySource")
 
        uploadChunksPosted = expvar.NewInt("uploadChunksPosted")
-       unexpectedCancels  = expvar.NewInt("unexpectedCancels")
 
        pieceHashedCorrect    = expvar.NewInt("pieceHashedCorrect")
        pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")