Splat args for HMSET

This commit is contained in:
Peter Stuifzand 2018-03-28 13:15:45 +02:00
parent 57b3285bbc
commit 69dbbae6b7

View File

@ -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