Skip to content

Commit

Permalink
Update apq.md function definition mismatch
Browse files Browse the repository at this point in the history
line 67:  cache, err := NewCache(cfg.RedisAddress, 24*time.Hour)
line 41: func NewCache(redisAddress string, password string,ttl time.Duration) (*Cache, error)

either password should be removed from 41 or added in line 67
Proposed the first one for now.
  • Loading branch information
ShivangGoswami authored Apr 19, 2021
1 parent 5ad012e commit 843edd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/reference/apq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Cache struct {

const apqPrefix = "apq:"

func NewCache(redisAddress string, password string, ttl time.Duration) (*Cache, error) {
func NewCache(redisAddress string, ttl time.Duration) (*Cache, error) {
client := redis.NewClient(&redis.Options{
Addr: redisAddress,
})
Expand Down

0 comments on commit 843edd9

Please sign in to comment.