mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-01 22:38:59 -07:00
Completed cache.Tx tests and added benchmarks
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user