fix golint issues in core/limit (#494)

This commit is contained in:
Kevin Wan
2021-02-20 21:55:54 +08:00
committed by GitHub
parent f98c9246b2
commit 84d2b6f8f5
2 changed files with 14 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ func TestPeriodLimit_RedisUnavailable(t *testing.T) {
assert.Equal(t, 0, val)
}
func testPeriodLimit(t *testing.T, opts ...LimitOption) {
func testPeriodLimit(t *testing.T, opts ...PeriodOption) {
store, clean, err := redistest.CreateRedis()
assert.Nil(t, err)
defer clean()