a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
20 lignes
699 o
Go
20 lignes
699 o
Go
package dht
|
|
|
|
import (
|
|
"expvar"
|
|
)
|
|
|
|
var (
|
|
read = expvar.NewInt("dhtRead")
|
|
readZeroPort = expvar.NewInt("dhtReadZeroPort")
|
|
readBlocked = expvar.NewInt("dhtReadBlocked")
|
|
readNotKRPCDict = expvar.NewInt("dhtReadNotKRPCDict")
|
|
readUnmarshalError = expvar.NewInt("dhtReadUnmarshalError")
|
|
readQuery = expvar.NewInt("dhtReadQuery")
|
|
readQueryBad = expvar.NewInt("dhtQueryBad")
|
|
readAnnouncePeer = expvar.NewInt("dhtReadAnnouncePeer")
|
|
announceErrors = expvar.NewInt("dhtAnnounceErrors")
|
|
writeErrors = expvar.NewInt("dhtWriteErrors")
|
|
writes = expvar.NewInt("dhtWrites")
|
|
readInvalidToken = expvar.NewInt("dhtReadInvalidToken")
|
|
)
|