2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Add torrent.InfoHash type alias

This commit is contained in:
Matt Joiner 2018-07-07 11:32:52 +10:00
parent 76a3c0891a
commit e1d6fc2341
2 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@ type Client struct {
// through legitimate channels.
dopplegangerAddrs map[string]struct{}
badPeerIPs map[string]struct{}
torrents map[metainfo.Hash]*Torrent
torrents map[InfoHash]*Torrent
acceptLimiter map[ipStr]int
}

View File

@ -169,4 +169,7 @@ func min(as ...int64) int64 {
var unlimited = rate.NewLimiter(rate.Inf, 0)
type pieceIndex = int
type (
pieceIndex = int
InfoHash = metainfo.Hash
)