Changed peer schema and added additional tests

This commit is contained in:
cpb8010
2013-09-07 20:22:30 -04:00
parent cd6e4abec0
commit 42f9427c01
6 changed files with 541 additions and 232 deletions
-6
View File
@@ -197,12 +197,6 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
peer.IP = ip
}
// If the transaction failed, retry
err = tx.Commit()
if err != nil {
continue
}
// Generate the response
seedCount := len(torrent.Seeders)
leechCount := len(torrent.Leechers)