This commit is contained in:
liwei committed 2019-09-12 18:57:17 +08:00
1 parent 075852b847
commit adb7d89018
19 files changed
+415 -258

No files matched your search

+9 -3
View File
@@ -2,9 +2,9 @@ package torrent
import (
"fmt"
"gopeed/down/bt/metainfo"
"gopeed/down/bt/peer"
"gopeed/down/bt/tracker"
"github.com/monkeyWie/gopeed/down/bt/metainfo"
"github.com/monkeyWie/gopeed/down/bt/peer"
"github.com/monkeyWie/gopeed/down/bt/tracker"
"testing"
)
@@ -31,6 +31,8 @@ func Test_peerState_download(t *testing.T) {
if err != nil {
panic(err)
}
fmt.Println("handshake end")
// 开始下载
err = ps.download()
@@ -77,3 +79,7 @@ func peerTest(torrent *Torrent, peer *peer.Peer, ch chan *peerState) {
}
ch <- ps
}
func TestSome(t *testing.T) {
fmt.Println(11)
}