Rename expire -> expiration
This commit is contained in:
parent
d461812444
commit
22b42848b8
@ -202,8 +202,8 @@ func (store *SessionStore) storeValue(value string, expiresOn time.Time, request
|
|||||||
stream.XORKeyStream(ciphertext, []byte(value))
|
stream.XORKeyStream(ciphertext, []byte(value))
|
||||||
|
|
||||||
handle := ticket.asHandle(store.CookieOptions.CookieName)
|
handle := ticket.asHandle(store.CookieOptions.CookieName)
|
||||||
expires := expiresOn.Sub(time.Now())
|
expiration := expiresOn.Sub(time.Now())
|
||||||
err = store.Client.Set(handle, ciphertext, expires).Err()
|
err = store.Client.Set(handle, ciphertext, expiration).Err()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user