Skip to content

Commit

Permalink
Update to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Didip Kerabat committed Nov 4, 2024
1 parent 06af52f commit d77d780
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ package main
import (
"net/http"

"github.com/didip/tollbooth/v7"
"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8"
"github.com/didip/tollbooth/v8/limiter"
)

func HelloHandler(w http.ResponseWriter, req *http.Request) {
Expand Down Expand Up @@ -66,8 +66,8 @@ func main() {
import (
"time"

"github.com/didip/tollbooth/v7"
"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8"
"github.com/didip/tollbooth/v8/limiter"
)

lmt := tollbooth.NewLimiter(1, nil)
Expand Down
2 changes: 1 addition & 1 deletion libstring/libstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"strings"

"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/limiter"
)

// StringInSlice finds needle in a slice of strings.
Expand Down
2 changes: 1 addition & 1 deletion libstring/libstring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/limiter"
)

func TestStringInSlice(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion limiter/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

cache "github.com/go-pkgz/expirable-cache/v3"

"github.com/didip/tollbooth/v7/internal/time/rate"
"github.com/didip/tollbooth/v8/internal/time/rate"
)

// New is a constructor for Limiter.
Expand Down
6 changes: 3 additions & 3 deletions tollbooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/http"
"strings"

"github.com/didip/tollbooth/v7/errors"
"github.com/didip/tollbooth/v7/libstring"
"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/errors"
"github.com/didip/tollbooth/v8/libstring"
"github.com/didip/tollbooth/v8/limiter"
)

// setResponseHeaders configures X-Rate-Limit-Limit and X-Rate-Limit-Duration
Expand Down
2 changes: 1 addition & 1 deletion tollbooth_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/limiter"
)

func BenchmarkLimitByKeys(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion tollbooth_bug_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/limiter"
)

// See: https://github.com/didip/tollbooth/issues/48
Expand Down
2 changes: 1 addition & 1 deletion tollbooth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/didip/tollbooth/v7/limiter"
"github.com/didip/tollbooth/v8/limiter"
)

func TestLimitByKeys(t *testing.T) {
Expand Down

0 comments on commit d77d780

Please sign in to comment.