mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Fix obd goroutine leak (#10504)
The gouroutine collecting transfer stats never exits. Add missing channel close.
This commit is contained in:
@@ -232,6 +232,7 @@ func (client *peerRESTClient) doNetOBDTest(ctx context.Context, dataSize int64,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
close(transferChan)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return info, err
|
return info, err
|
||||||
|
|||||||
Reference in New Issue
Block a user