mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-13 14:08:36 -07:00
Fix Purge reporting all peers as Seeders
PeerMaps now are constructed with a boolean value that tells the map whether they are hosting seeders or leechers.
This commit is contained in:
@@ -374,8 +374,8 @@ func loadPrivateTestData(tkr *tracker.Tracker) error {
|
||||
torrent := &models.Torrent{
|
||||
ID: 1,
|
||||
Infohash: infoHash,
|
||||
Seeders: models.NewPeerMap(),
|
||||
Leechers: models.NewPeerMap(),
|
||||
Seeders: models.NewPeerMap(true),
|
||||
Leechers: models.NewPeerMap(false),
|
||||
}
|
||||
|
||||
return conn.PutTorrent(torrent)
|
||||
|
||||
Reference in New Issue
Block a user