From 918ed5cb328bac8a287417811cebd681f93d30fa Mon Sep 17 00:00:00 2001 From: "Vic (Shihang) Li" <40274755+vic-shihang-li@users.noreply.github.com> Date: Tue, 15 Mar 2022 03:05:52 -0400 Subject: [PATCH] fix: change thrashing typo (#2317) --- lib/writeconcurrencylimiter/concurrencylimiter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/writeconcurrencylimiter/concurrencylimiter.go b/lib/writeconcurrencylimiter/concurrencylimiter.go index a91fa686d..0237f5ba1 100644 --- a/lib/writeconcurrencylimiter/concurrencylimiter.go +++ b/lib/writeconcurrencylimiter/concurrencylimiter.go @@ -31,7 +31,7 @@ func Init() { // Do calls f with the limited concurrency. func Do(f func() error) error { // Limit the number of conurrent f calls in order to prevent from excess - // memory usage and CPU trashing. + // memory usage and CPU thrashing. select { case ch <- struct{}{}: err := f()