mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-19 14:48:09 -07:00
Changed peer schema and added additional tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user