Skip to content

Commit

Permalink
Merge pull request #23 from erigontech/increase_webseed_parallelization
Browse files Browse the repository at this point in the history
fix missing defer
  • Loading branch information
mh0lt authored Jul 16, 2024
2 parents c323168 + 79dd030 commit 32523f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peerconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ func (c *Peer) setTorrent(t *Torrent, lockTorrent bool) {
func (c *PeerConn) pexPeerFlags(lock bool) pp.PexPeerFlags {
if lock {
c.mu.RLock()
c.mu.RUnlock()
defer c.mu.RUnlock()
}

f := pp.PexPeerFlags(0)
Expand Down

0 comments on commit 32523f6

Please sign in to comment.