Remove pools from faketls

This commit is contained in:
9seconds
2020-08-10 13:21:30 +03:00
parent e286dea650
commit 3996b9a6b8
3 changed files with 3 additions and 46 deletions
+1 -4
View File
@@ -67,8 +67,5 @@ func cloak(one, another io.ReadWriteCloser) {
func cloakPipe(one io.Writer, another io.Reader, wg *sync.WaitGroup) {
defer wg.Done()
buf := acquireCloakBuffer()
defer releaseCloakBuffer(buf)
io.CopyBuffer(one, another, *buf) // nolint: errcheck
io.Copy(one, another) // nolint: errcheck
}