Skip to content

Commit

Permalink
migrate to gomodule/redigo from garyburd/redigo and introduce go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Oct 8, 2019
1 parent 946f90e commit e6039c8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/fileserver.go
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"time"

"github.com/garyburd/redigo/redis"
"github.com/gomodule/redigo/redis"
"github.com/mash/go-limiter"
"github.com/mash/go-limiter/redigostore"
)
Expand Down
8 changes: 8 additions & 0 deletions go.mod
@@ -0,0 +1,8 @@
module github.com/mash/go-limiter

go 1.13

require (
github.com/gomodule/redigo v1.7.0
github.com/soh335/go-test-redisserver v0.1.0
)
4 changes: 4 additions & 0 deletions go.sum
@@ -0,0 +1,4 @@
github.com/gomodule/redigo v1.7.0 h1:ZKld1VOtsGhAe37E7wMxEDgAlGM5dvFY+DiOhSkhP9Y=
github.com/gomodule/redigo v1.7.0/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/soh335/go-test-redisserver v0.1.0 h1:FZYs/CVmUFP1uHVq7avxU+HpRoFIv2JWzhdV/g2Hyk4=
github.com/soh335/go-test-redisserver v0.1.0/go.mod h1:vofbm8mr+As7DkCPPNA9Jy/KOA6bBl50xd0VUkisMzY=
4 changes: 2 additions & 2 deletions limiter_test.go
Expand Up @@ -9,9 +9,9 @@ import (
"testing"
"time"

"github.com/garyburd/redigo/redis"
"github.com/gomodule/redigo/redis"
"github.com/mash/go-limiter/redigostore"
"github.com/soh335/go-test-redisserver"
redistest "github.com/soh335/go-test-redisserver"
)

// will be nil if we're testing on wercker
Expand Down
2 changes: 1 addition & 1 deletion redigostore/redigostore.go
Expand Up @@ -3,7 +3,7 @@ package redigostore
import (
"time"

"github.com/garyburd/redigo/redis"
"github.com/gomodule/redigo/redis"
)

type pool interface {
Expand Down

0 comments on commit e6039c8

Please sign in to comment.