From 22b42848b80a8b2728d3897edf59fbdeda585ab9 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Thu, 16 May 2019 17:08:10 +0100 Subject: [PATCH] Rename expire -> expiration --- pkg/sessions/redis/redis_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sessions/redis/redis_store.go b/pkg/sessions/redis/redis_store.go index 154b839..fd71c4a 100644 --- a/pkg/sessions/redis/redis_store.go +++ b/pkg/sessions/redis/redis_store.go @@ -202,8 +202,8 @@ func (store *SessionStore) storeValue(value string, expiresOn time.Time, request stream.XORKeyStream(ciphertext, []byte(value)) handle := ticket.asHandle(store.CookieOptions.CookieName) - expires := expiresOn.Sub(time.Now()) - err = store.Client.Set(handle, ciphertext, expires).Err() + expiration := expiresOn.Sub(time.Now()) + err = store.Client.Set(handle, ciphertext, expiration).Err() if err != nil { return "", err }