diff --git a/lib/throttler/throttler.go b/lib/throttler/throttler.go index 7fbddd08..63620f72 100644 --- a/lib/throttler/throttler.go +++ b/lib/throttler/throttler.go @@ -13,7 +13,7 @@ type Throttler struct { func NewThrottler(limit int64) (*Throttler, error) { if limit <= 0 { - return nil, fmt.Errorf("Throttler limit should be greater than 0") + return nil, fmt.Errorf("throttler limit should be greater than 0") } return &Throttler{limit: limit}, nil diff --git a/lib/throttler/throttler_test.go b/lib/throttler/throttler_test.go index d4196fe0..7b7e5ede 100644 --- a/lib/throttler/throttler_test.go +++ b/lib/throttler/throttler_test.go @@ -9,7 +9,7 @@ import ( func TestThrottler(t *testing.T) { { _, err := NewThrottler(0) - assert.ErrorContains(t, err, "Throttler limit should be greater than 0") + assert.ErrorContains(t, err, "throttler limit should be greater than 0") } { throttler, err := NewThrottler(1)