File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -156,13 +156,14 @@ func TestRedisCounter(t *testing.T) {
156
156
157
157
func BenchmarkLocalCounter (b * testing.B ) {
158
158
limitCounter , err := httprateredis .NewRedisLimitCounter (& httprateredis.Config {
159
- Host : "localhost" ,
160
- Port : 6379 ,
161
- MaxIdle : 500 ,
162
- MaxActive : 500 ,
163
- DBIndex : 0 ,
164
- ClientName : "httprateredis_test" ,
165
- PrefixKey : fmt .Sprintf ("httprate:test:%v" , rand .Int31n (100000 )), // Unique key for each test
159
+ Host : "localhost" ,
160
+ Port : 6379 ,
161
+ MaxIdle : 500 ,
162
+ MaxActive : 500 ,
163
+ DBIndex : 0 ,
164
+ ClientName : "httprateredis_test" ,
165
+ PrefixKey : fmt .Sprintf ("httprate:test:%v" , rand .Int31n (100000 )), // Unique key for each test
166
+ FallbackDisabled : true ,
166
167
})
167
168
if err != nil {
168
169
b .Fatalf ("redis not available: %v" , err )
You can’t perform that action at this time.
0 commit comments