mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 01:38:30 +02:00
cleanup and simplify middleware implementations, refactor some other code
This commit is contained in:
@@ -14,7 +14,7 @@ func TestRateLimit(t *testing.T) {
|
||||
"period": "1s",
|
||||
}
|
||||
|
||||
rl, err := NewRateLimiter(opts)
|
||||
rl, err := RateLimiter.New(opts)
|
||||
ExpectNoError(t, err)
|
||||
for range 10 {
|
||||
result, err := newMiddlewareTest(rl, nil)
|
||||
|
||||
Reference in New Issue
Block a user