From 7de3cf068d4d4f308afbbe5d27bd6b9023dd3607 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 3 Jul 2024 10:45:19 +0700 Subject: [PATCH] save --- peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer.go b/peer.go index 4dec6334d8..5cda2250a3 100644 --- a/peer.go +++ b/peer.go @@ -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 @@ -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()