fix infinite loop in `stats bw`
"break" just breaks from the select, this loops infinitely (fast). License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Oct 13, 2018 at 21:22 UTC
bf2d7cb2bdc29bf7b6d9656db44efc598a3719f8
1 file changed
+1
-1
core/commands/stat.go
+1
-1
@@ -142,7 +142,7 @@ Example:
142
select {
143
case <-time.After(interval):
144
case <-req.Context.Done():
145
- break
145
+ return nil
146
}
147
}
148
},