Skip to content

Commit

Permalink
remove lock printers
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jun 10, 2024
1 parent ef0987d commit f59b74b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2440,9 +2440,6 @@ func (t *Torrent) addPeerConn(c *PeerConn, lockTorrent bool) (err error) {

func (t *Torrent) newConnsAllowed(lock bool) bool {
if lock {
if t.mu.lc.Load() > 0 {
fmt.Println("newConnsAllowed", "L", t.mu.locker, "R", t.mu.rlocker)
}
t.mu.RLock()
defer t.mu.RUnlock()
}
Expand Down

0 comments on commit f59b74b

Please sign in to comment.