File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ matrix:
14
14
- go : tip
15
15
16
16
install :
17
- - go get gopkg.in/redis.v4
17
+ - go get gopkg.in/redis.v5
18
18
- go get golang.org/x/time/rate
19
19
- mkdir -p $HOME/gopath/src/gopkg.in/go-redis/
20
- - mv `pwd` $HOME/gopath/src/gopkg.in/go-redis/rate.v4
20
+ - mv `pwd` $HOME/gopath/src/gopkg.in/go-redis/rate.v5
Original file line number Diff line number Diff line change 1
1
all :
2
2
go test ./...
3
3
go test ./... -short -race
4
+ go vet
Original file line number Diff line number Diff line change 1
- # Rate limiting for go-redis [ ![ Build Status] ( https://travis-ci.org/go-redis/rate.svg?branch=v4 )] ( https://travis-ci.org/go-redis/rate )
1
+ # Rate limiting for go-redis [ ![ Build Status] ( https://travis-ci.org/go-redis/rate.svg?branch=v5 )] ( https://travis-ci.org/go-redis/rate )
2
2
3
3
``` go
4
4
// +build example
@@ -14,8 +14,8 @@ import (
14
14
15
15
timerate " golang.org/x/time/rate"
16
16
17
- " gopkg.in/go-redis/rate.v4 "
18
- " gopkg.in/redis.v4 "
17
+ " gopkg.in/go-redis/rate.v5 "
18
+ " gopkg.in/redis.v5 "
19
19
)
20
20
21
21
func handler (w http .ResponseWriter , req *http .Request , rateLimiter *rate .Limiter ) {
Original file line number Diff line number Diff line change 1
- package rate // import "gopkg.in/go-redis/rate.v4 "
1
+ package rate // import "gopkg.in/go-redis/rate.v5 "
2
2
3
3
import (
4
4
"fmt"
5
5
"time"
6
6
7
7
timerate "golang.org/x/time/rate"
8
- redis "gopkg.in/redis.v4 "
8
+ redis "gopkg.in/redis.v5 "
9
9
)
10
10
11
11
const redisPrefix = "rate"
Original file line number Diff line number Diff line change 4
4
"testing"
5
5
"time"
6
6
7
- redis "gopkg.in/redis.v4 "
7
+ redis "gopkg.in/redis.v5 "
8
8
9
9
timerate "golang.org/x/time/rate"
10
10
)
You can’t perform that action at this time.
0 commit comments