Skip to content
Permalink
Browse files

fix(redis): Pass style checks

  • Loading branch information...
krancour committed Jul 15, 2016
1 parent 2da72a5 commit 93b9c5ce1496654432d35bf4bb51503e4b3a9805
Showing with 3 additions and 3 deletions.
  1. +1 −1 storage/redis_adapter.go
  2. +2 −2 storage/redis_adapter_test.go
@@ -71,7 +71,7 @@ type redisAdapter struct {
}

// NewRedisStorageAdapter returns a pointer to a new instance of a redis-based storage.Adapter.
func NewRedisStorageAdapter(bufferSize int) (*redisAdapter, error) {
func NewRedisStorageAdapter(bufferSize int) (Adapter, error) {
if bufferSize <= 0 {
return nil, fmt.Errorf("Invalid buffer size: %d", bufferSize)
}
@@ -120,7 +120,7 @@ func TestRedisDestroy(t *testing.T) {
// there are 50 queued up OR a 1 second timeout has been reached.
time.Sleep(time.Second * 2)
// A redis list should exist for the app
exists, err := a.redisClient.Exists(app).Result()
exists, err := a.(*redisAdapter).redisClient.Exists(app).Result()
if err != nil {
t.Error(err)
}
@@ -132,7 +132,7 @@ func TestRedisDestroy(t *testing.T) {
t.Error(err)
}
// Now check that the redis list no longer exists
exists, err = a.redisClient.Exists(app).Result()
exists, err = a.(*redisAdapter).redisClient.Exists(app).Result()
if err != nil {
t.Error(err)
}

0 comments on commit 93b9c5c

Please sign in to comment.
You can’t perform that action at this time.