Completed cache.Tx tests and added benchmarks

This commit is contained in:
cpb8010
2013-09-16 00:06:48 -04:00
parent 3caa06b5f6
commit 1ea24f80dc
6 changed files with 527 additions and 323 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
}
// Look for the user in in the pool of seeders and leechers
_, seeder := torrent.Seeders[peerID]
_, leecher := torrent.Leechers[peerID]
_, seeder := torrent.Seeders[models.PeerMapKey(peer)]
_, leecher := torrent.Leechers[models.PeerMapKey(peer)]
switch {
// Guarantee that no user is in both pools