Skip to content

Commit

Permalink
lock adjustments and debugging, dl running
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jun 6, 2024
1 parent 6539c89 commit 87b65e1
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 154 deletions.
4 changes: 2 additions & 2 deletions peer-impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type peerImpl interface {

// _cancel initiates cancellation of a request and returns acked if it expects the cancel to be
// handled by a follow-up event.
_cancel(RequestIndex) (acked bool)
_cancel(r RequestIndex, lockTorrent bool) (acked bool)
_request(Request) bool
connectionFlags() string
onClose(lockTorrent bool)
Expand All @@ -35,5 +35,5 @@ type peerImpl interface {
peerHasAllPieces(lockTorrent bool) (all, known bool)
peerPieces() *roaring.Bitmap

nominalMaxRequests(lock bool) maxRequests
nominalMaxRequests(lock bool, lockTorrent bool) maxRequests
}
Loading

0 comments on commit 87b65e1

Please sign in to comment.