Skip to content

Commit

Permalink
added debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jun 9, 2024
1 parent 2ea998e commit 032623f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1088,9 +1088,11 @@ func (t *Torrent) runHandshookConn(pc *PeerConn) error {
}
defer t.dropConnection(pc, false)
pc.startMessageWriter(false)
fmt.Println("sendInitialMessages")
pc.sendInitialMessages(false)
fmt.Println("initUpdateRequestsTimer")
pc.initUpdateRequestsTimer(true)

fmt.Println("done")
return nil
}(); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion peerconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestSendBitfieldThenHave(t *testing.T) {
c.startMessageWriter(true)
c.locker().Lock()
c.t._completedPieces.Add(1)
c.postBitfield( /*[]bool{false, true, false}*/ )
c.postBitfield(true /*[]bool{false, true, false}*/)
c.locker().Unlock()
c.locker().Lock()
c.have(2)
Expand Down

0 comments on commit 032623f

Please sign in to comment.