fix: keep MRF channel open to avoid random CI crash (#10686)

There doesn't seem to be any benefit to closing the channel, so just keep 
it open and let it die with the server.
This commit is contained in:
Klaus Post 2020-10-16 09:08:51 -07:00 committed by GitHub
parent 8a16a1a1a9
commit 21a549a83b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,14 +81,6 @@ func (er erasureObjects) SetDriveCount() int {
func (er erasureObjects) Shutdown(ctx context.Context) error {
// Add any object layer shutdown activities here.
closeStorageDisks(er.getDisks())
select {
case _, ok := <-er.mrfOpCh:
if ok {
close(er.mrfOpCh)
}
default:
close(er.mrfOpCh)
}
return nil
}