]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove duplicateClientConns expvar
authorMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 10:23:26 +0000 (20:23 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 12 Jun 2018 10:23:26 +0000 (20:23 +1000)
global.go

index cdd0351386673f7c6790c7df038c5760ebcd8485..5b4132bf18ec2f57a0ae41b1be36142f62db3397 100644 (file)
--- a/global.go
+++ b/global.go
@@ -40,9 +40,7 @@ var (
        peerExtensions                    = expvar.NewMap("peerExtensions")
        completedHandshakeConnectionFlags = expvar.NewMap("completedHandshakeConnectionFlags")
        // Count of connections to peer with same client ID.
-       connsToSelf = expvar.NewInt("connsToSelf")
-       // Number of completed connections to a client we're already connected with.
-       duplicateClientConns       = expvar.NewInt("duplicateClientConns")
+       connsToSelf                = expvar.NewInt("connsToSelf")
        receivedKeepalives         = expvar.NewInt("receivedKeepalives")
        supportedExtensionMessages = expvar.NewMap("supportedExtensionMessages")
        postedKeepalives           = expvar.NewInt("postedKeepalives")