Revert "prevents a goroutine from being leaked in call to readByteWithTimeout"

This reverts commit 8810120de6.
pull/11247/head
hex0punk 2021-04-29 22:45:39 -07:00
parent 8810120de6
commit f0226e50a9
1 changed files with 2 additions and 2 deletions

View File

@ -172,8 +172,8 @@ func kubectlProxy(kubectlVersion string, contextName string) (*exec.Cmd, string,
// readByteWithTimeout returns a byte from a reader or an indicator that a timeout has occurred.
func readByteWithTimeout(r io.ByteReader, timeout time.Duration) (byte, bool, error) {
bc := make(chan byte, 1)
ec := make(chan error, 1)
bc := make(chan byte)
ec := make(chan error)
go func() {
b, err := r.ReadByte()
if err != nil {