Splat args for HMSET
This commit is contained in:
parent
57b3285bbc
commit
69dbbae6b7
|
@ -190,7 +190,7 @@ func (h *microsubHandler) cachedCheckAuthToken(header string, r *TokenResponse)
|
|||
|
||||
if authorized {
|
||||
fmt.Printf("Token response: %#v\n", r)
|
||||
_, err = h.Redis.Do("HMSET", redis.Args{}.Add(key).AddFlat(r))
|
||||
_, err = h.Redis.Do("HMSET", redis.Args{}.Add(key).AddFlat(r)...)
|
||||
if err != nil {
|
||||
log.Printf("Error while setting token: %v\n", err)
|
||||
return authorized
|
||||
|
|
Loading…
Reference in New Issue
Block a user