Skip to content

Commit

Permalink
fix(redis): Pass style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
krancour committed Jul 15, 2016
1 parent 2da72a5 commit 93b9c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion storage/redis_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions storage/redis_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 93b9c5c

Please sign in to comment.