Skip to content

Commit 0d241c8

Browse files
authored
Update middleware.go (#353)
Before these changes, compiling myself I would get: ``` go: downloading github.com/throttled/throttled v1.0.0 go: downloading github.com/throttled/throttled/v2 v2.7.1 go: downloading github.com/throttled/throttled v2.2.5+incompatible go get: gopkg.in/throttled/[email protected] updating to gopkg.in/throttled/[email protected]: parsing go.mod: module declares its path as: github.com/throttled/throttled/v2 but was required as: gopkg.in/throttled/throttled.v2 ```
1 parent 7efb66c commit 0d241c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

middleware.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/h2non/bimg"
1313
"github.com/rs/cors"
14-
"gopkg.in/throttled/throttled.v2"
15-
"gopkg.in/throttled/throttled.v2/store/memstore"
14+
"github.com/throttled/throttled/v2"
15+
"github.com/throttled/throttled/v2/store/memstore"
1616
)
1717

1818
func Middleware(fn func(http.ResponseWriter, *http.Request), o ServerOptions) http.Handler {

0 commit comments

Comments
 (0)