mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
remove excessive logging due to runtime.debugStack
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user