mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
bitfield handle
This commit is contained in:
1 parent
544e8bc7b1
commit
d6c88d0c4b
7 files changed
+216
-423
No files matched your search
@@ -2,7 +2,6 @@ package torrent
|
||||
|
||||
import (
|
||||
"gopeed/down/bt/metainfo"
|
||||
"gopeed/down/bt/peer"
|
||||
)
|
||||
|
||||
type Torrent struct {
|
||||
@@ -21,7 +20,3 @@ func NewTorrent(peerID [20]byte, metaInfo *metainfo.MetaInfo) *Torrent {
|
||||
}
|
||||
return torrent
|
||||
}
|
||||
|
||||
// 检查一个peer能否提供需要下载的文件分片
|
||||
func CheckPeer(bitfield peer.MsgBitfield) {
|
||||
}
|
||||
Reference in new issue
Block a user