From 9ef132c33b245fafdb702b8e8a31d8335881846d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 28 Jan 2024 18:10:27 -0800 Subject: [PATCH] remove excessive logging due to runtime.debugStack --- internal/ioutil/ioutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ioutil/ioutil.go b/internal/ioutil/ioutil.go index 2cd4136c5..2cb07b894 100644 --- a/internal/ioutil/ioutil.go +++ b/internal/ioutil/ioutil.go @@ -424,6 +424,7 @@ func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, f func SafeClose[T any](c chan<- T) { if c != nil { close(c) + return } // Print stack to check who is sending `c` as `nil` // without crashing the server.