Skip to content

Commit 0bc92da

Browse files
committed
Upgrade to redis.v5
1 parent 790b163 commit 0bc92da

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ matrix:
1414
- go: tip
1515

1616
install:
17-
- go get gopkg.in/redis.v4
17+
- go get gopkg.in/redis.v5
1818
- go get golang.org/x/time/rate
1919
- 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

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
all:
22
go test ./...
33
go test ./... -short -race
4+
go vet

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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)
22

33
```go
44
// +build example
@@ -14,8 +14,8 @@ import (
1414

1515
timerate "golang.org/x/time/rate"
1616

17-
"gopkg.in/go-redis/rate.v4"
18-
"gopkg.in/redis.v4"
17+
"gopkg.in/go-redis/rate.v5"
18+
"gopkg.in/redis.v5"
1919
)
2020

2121
func handler(w http.ResponseWriter, req *http.Request, rateLimiter *rate.Limiter) {

rate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package rate // import "gopkg.in/go-redis/rate.v4"
1+
package rate // import "gopkg.in/go-redis/rate.v5"
22

33
import (
44
"fmt"
55
"time"
66

77
timerate "golang.org/x/time/rate"
8-
redis "gopkg.in/redis.v4"
8+
redis "gopkg.in/redis.v5"
99
)
1010

1111
const redisPrefix = "rate"

rate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
redis "gopkg.in/redis.v4"
7+
redis "gopkg.in/redis.v5"
88

99
timerate "golang.org/x/time/rate"
1010
)

0 commit comments

Comments
 (0)