mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
Refactor
This commit is contained in:
1 parent
075852b847
commit
adb7d89018
19 files changed
+415
-258
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user