iothrottler
iothrottler copied to clipboard
Update iothrottler.go
Must be a non-negative value in Bandwidth
Thanks for posting this PR. The unit tests pass, but I'm concerned this may introduce a bug. For example on lines 99-101 of iothreottler.go we account for a variable of type Bandwidth being negative. I'm wondering if a better fix would be to check for negative bandwidth in NewIOThrottlerPool and SetBandwidth. What are your thoughts on this proposal?