]> Sergey Matveev's repositories - btrtrc.git/commit
Clarify ownership of (*Torrent).chunkPool (#583)
authorYenForYang <YenForYang@users.noreply.github.com>
Thu, 9 Sep 2021 12:27:16 +0000 (07:27 -0500)
committerGitHub <noreply@github.com>
Thu, 9 Sep 2021 12:27:16 +0000 (22:27 +1000)
commit62c6fbc8f8537a562baf96d75b088447e042e327
tree579ad4238731bf38efe9bb4072bb594395e5195b
parent10d5e6234e667d0d632c1820a44e1a764b98ba10
Clarify ownership of (*Torrent).chunkPool (#583)

Basically bind the lifetime of chunkPool to the torrent by using `sync.Pool` in lieu of `*sync.Pool`. Gives the GC ever so slightly less work to do.
peerconn.go
torrent.go