From 8e60d090653a52b9b434b94c2b5762e472867330 Mon Sep 17 00:00:00 2001 From: Milan Boleradszki Date: Mon, 26 Mar 2018 16:48:32 +0100 Subject: [PATCH] Update redigo import paths The repository github.com/garyburd/redigo has moved to github.com/gomodule/redigo, so update the import paths and link in README. --- README.md | 2 +- mutex.go | 4 ++-- mutex_test.go | 2 +- redis.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4b5c1ba..69173d6 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Install Redsync using the go get command: $ go get gopkg.in/redsync.v1 -The only dependencies are the Go distribution and [Redigo](https://github.com/garyburd/redigo). +The only dependencies are the Go distribution and [Redigo](https://github.com/gomodule/redigo). ## Documentation diff --git a/mutex.go b/mutex.go index 703d350..f0523ca 100644 --- a/mutex.go +++ b/mutex.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/garyburd/redigo/redis" + "github.com/gomodule/redigo/redis" ) // A Mutex is a distributed mutual exclusion lock. @@ -43,7 +43,7 @@ func (m *Mutex) Lock() error { if i != 0 { time.Sleep(m.delay) } - + start := time.Now() n := 0 diff --git a/mutex_test.go b/mutex_test.go index 770ef96..b5db657 100644 --- a/mutex_test.go +++ b/mutex_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/garyburd/redigo/redis" + "github.com/gomodule/redigo/redis" "github.com/stvp/tempredis" ) diff --git a/redis.go b/redis.go index b48d755..d0b4b78 100644 --- a/redis.go +++ b/redis.go @@ -1,6 +1,6 @@ package redsync -import "github.com/garyburd/redigo/redis" +import "github.com/gomodule/redigo/redis" // A Pool maintains a pool of Redis connections. type Pool interface {