Skip to content

Commit

Permalink
change code.google.com/p/vitess to github.com/youtube/vitess
Browse files Browse the repository at this point in the history
  • Loading branch information
robscc authored and benmanns committed Jun 25, 2015
1 parent a61600b commit 36e605a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions goworker.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package goworker

import (
"code.google.com/p/vitess/go/pools"
"github.com/youtube/vitess/go/pools"
"github.com/cihub/seelog"
"golang.org/x/net/context"
"os"
"strconv"
"sync"
Expand All @@ -12,6 +13,7 @@ import (
var (
logger seelog.LoggerInterface
pool *pools.ResourcePool
ctx context.Context
)

// Init initializes the goworker process. This will be
Expand All @@ -28,6 +30,7 @@ func Init() error {
if err := flags(); err != nil {
return err
}
ctx = context.Background()

pool = newRedisPool(uri, connections, connections, time.Minute)

Expand All @@ -41,7 +44,7 @@ func Init() error {
// while they wait for an available connection. Expect this
// API to change drastically.
func GetConn() (*RedisConn, error) {
resource, err := pool.Get()
resource, err := pool.Get(ctx)

if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion redis.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package goworker

import (
"code.google.com/p/vitess/go/pools"
"github.com/youtube/vitess/go/pools"
"errors"
"github.com/garyburd/redigo/redis"
"net/url"
Expand Down

0 comments on commit 36e605a

Please sign in to comment.