mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-09 21:59:09 -07:00
Introduce thread-safe PeerMap
This commit is contained in:
@@ -374,8 +374,8 @@ func loadPrivateTestData(tkr *tracker.Tracker) error {
|
||||
torrent := &models.Torrent{
|
||||
ID: 1,
|
||||
Infohash: infoHash,
|
||||
Seeders: models.PeerMap{},
|
||||
Leechers: models.PeerMap{},
|
||||
Seeders: models.NewPeerMap(),
|
||||
Leechers: models.NewPeerMap(),
|
||||
}
|
||||
|
||||
return conn.PutTorrent(torrent)
|
||||
|
||||
Reference in New Issue
Block a user