Merge pull request #5598 from ipfs/fix/infinite-loop-stats-bw

fix infinite loop in `stats bw`
This commit is contained in:
Steven Allen 2018-10-13 22:20:29 +01:00 committed by GitHub
commit 9bf4e4145e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ Example:
select {
case <-time.After(interval):
case <-req.Context.Done():
break
return nil
}
}
},