mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
remove excessive logging due to runtime.debugStack
This commit is contained in:
parent
ff8269575a
commit
9ef132c33b
@ -424,6 +424,7 @@ func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, f
|
|||||||
func SafeClose[T any](c chan<- T) {
|
func SafeClose[T any](c chan<- T) {
|
||||||
if c != nil {
|
if c != nil {
|
||||||
close(c)
|
close(c)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// Print stack to check who is sending `c` as `nil`
|
// Print stack to check who is sending `c` as `nil`
|
||||||
// without crashing the server.
|
// without crashing the server.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user