From 358f9622d8858525a4f9652e386b0a185e0e691d Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 3 Jul 2024 10:52:44 +0700 Subject: [PATCH] save --- client.go | 1 - peer.go | 1 - 2 files changed, 2 deletions(-) diff --git a/client.go b/client.go index dc2f9fbe17..00b0c5e0e7 100644 --- a/client.go +++ b/client.go @@ -1857,7 +1857,6 @@ func (cl *Client) locker() *lockWithDeferreds { } func (cl *Client) String() string { - panic(1) return fmt.Sprintf("<%[1]T %[1]p>", cl) } diff --git a/peer.go b/peer.go index 5cda2250a3..6c8f6b8640 100644 --- a/peer.go +++ b/peer.go @@ -305,7 +305,6 @@ 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()