Skip to content

Commit

Permalink
move to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
didip committed Jul 6, 2022
1 parent b96dae2 commit 376acbc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ package main
import (
"net/http"

"github.com/didip/tollbooth/v6"
"github.com/didip/tollbooth/v7"
)

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

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

lmt := tollbooth.NewLimiter(1, nil)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/didip/tollbooth/v6
module github.com/didip/tollbooth/v7

go 1.12

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"

"github.com/didip/tollbooth/v6/internal/time/rate"
"github.com/didip/tollbooth/v7/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/v6/errors"
"github.com/didip/tollbooth/v6/libstring"
"github.com/didip/tollbooth/v6/limiter"
"github.com/didip/tollbooth/v7/errors"
"github.com/didip/tollbooth/v7/libstring"
"github.com/didip/tollbooth/v7/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/v6/limiter"
"github.com/didip/tollbooth/v7/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/v6/limiter"
"github.com/didip/tollbooth/v7/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 @@ -8,7 +8,7 @@ import (
"testing"
"time"

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

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

0 comments on commit 376acbc

Please sign in to comment.