mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
fix: change thrashing typo (#2317)
This commit is contained in:
parent
894416b4ca
commit
918ed5cb32
@ -31,7 +31,7 @@ func Init() {
|
|||||||
// Do calls f with the limited concurrency.
|
// Do calls f with the limited concurrency.
|
||||||
func Do(f func() error) error {
|
func Do(f func() error) error {
|
||||||
// Limit the number of conurrent f calls in order to prevent from excess
|
// Limit the number of conurrent f calls in order to prevent from excess
|
||||||
// memory usage and CPU trashing.
|
// memory usage and CPU thrashing.
|
||||||
select {
|
select {
|
||||||
case ch <- struct{}{}:
|
case ch <- struct{}{}:
|
||||||
err := f()
|
err := f()
|
||||||
|
Loading…
Reference in New Issue
Block a user