Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jul 3, 2024
1 parent 637568f commit 7de3cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type (
Peer struct {
// First to ensure 64-bit alignment for atomics. See #262.
_stats ConnStats
mu sync.RWMutex
mu sync.RWMutex

t *Torrent

Expand Down Expand Up @@ -305,7 +305,7 @@ func (cn *Peer) iterContiguousPieceRequests(f func(piece pieceIndex, count int),
}

func (cn *Peer) writeStatus(w io.Writer, lock bool, lockTorrent bool) {

panic(2)
if lockTorrent {
cn.t.mu.RLock()
defer cn.t.mu.RUnlock()
Expand Down

0 comments on commit 7de3cf0

Please sign in to comment.