Rename expire -> expiration

This commit is contained in:
Joel Speed
2019-06-05 00:10:51 -07:00
committed by Brian Van Klaveren
parent 2f61e42c37
commit a6b8f7bde2
+2 -2
View File
@@ -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
}