File tree Expand file tree Collapse file tree 8 files changed +13
-13
lines changed
Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ package main
3636import (
3737 " net/http"
3838
39- " github.com/didip/tollbooth/v7 "
40- " github.com/didip/tollbooth/v7 /limiter"
39+ " github.com/didip/tollbooth/v8 "
40+ " github.com/didip/tollbooth/v8 /limiter"
4141)
4242
4343func HelloHandler (w http .ResponseWriter , req *http .Request ) {
@@ -66,8 +66,8 @@ func main() {
6666 import (
6767 " time"
6868
69- " github.com/didip/tollbooth/v7 "
70- " github.com/didip/tollbooth/v7 /limiter"
69+ " github.com/didip/tollbooth/v8 "
70+ " github.com/didip/tollbooth/v8 /limiter"
7171 )
7272
7373 lmt := tollbooth.NewLimiter (1 , nil )
Original file line number Diff line number Diff line change 66 "net/http"
77 "strings"
88
9- "github.com/didip/tollbooth/v7 /limiter"
9+ "github.com/didip/tollbooth/v8 /limiter"
1010)
1111
1212// StringInSlice finds needle in a slice of strings.
Original file line number Diff line number Diff line change 55 "strings"
66 "testing"
77
8- "github.com/didip/tollbooth/v7 /limiter"
8+ "github.com/didip/tollbooth/v8 /limiter"
99)
1010
1111func TestStringInSlice (t * testing.T ) {
Original file line number Diff line number Diff line change 88
99 cache "github.com/go-pkgz/expirable-cache/v3"
1010
11- "github.com/didip/tollbooth/v7 /internal/time/rate"
11+ "github.com/didip/tollbooth/v8 /internal/time/rate"
1212)
1313
1414// New is a constructor for Limiter.
Original file line number Diff line number Diff line change 77 "net/http"
88 "strings"
99
10- "github.com/didip/tollbooth/v7 /errors"
11- "github.com/didip/tollbooth/v7 /libstring"
12- "github.com/didip/tollbooth/v7 /limiter"
10+ "github.com/didip/tollbooth/v8 /errors"
11+ "github.com/didip/tollbooth/v8 /libstring"
12+ "github.com/didip/tollbooth/v8 /limiter"
1313)
1414
1515// setResponseHeaders configures X-Rate-Limit-Limit and X-Rate-Limit-Duration
Original file line number Diff line number Diff line change 77 "testing"
88 "time"
99
10- "github.com/didip/tollbooth/v7 /limiter"
10+ "github.com/didip/tollbooth/v8 /limiter"
1111)
1212
1313func BenchmarkLimitByKeys (b * testing.B ) {
Original file line number Diff line number Diff line change 66 "testing"
77 "time"
88
9- "github.com/didip/tollbooth/v7 /limiter"
9+ "github.com/didip/tollbooth/v8 /limiter"
1010)
1111
1212// See: https://github.com/didip/tollbooth/issues/48
Original file line number Diff line number Diff line change 99 "testing"
1010 "time"
1111
12- "github.com/didip/tollbooth/v7 /limiter"
12+ "github.com/didip/tollbooth/v8 /limiter"
1313)
1414
1515func TestLimitByKeys (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments