Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
bf503b5f
Commit
bf503b5f
authored
4 years ago
by
Akshay Bharambe
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Failed to update session mgr expiration on retrieveAndExtend
parent
b74d8d37
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!218
Release v1.1.2
,
!217
Fix: Failed to update session mgr expiration on retrieveAndExtend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sessionmanagermdl/sessionmanager.go
+1
-1
sessionmanagermdl/sessionmanager.go
with
1 addition
and
1 deletion
sessionmanagermdl/sessionmanager.go
+
1
−
1
View file @
bf503b5f
...
...
@@ -130,7 +130,7 @@ func RetrieveAndExtend(key string, extendBy int64) (Entry, error) {
if
timeRemaining
<
extendBy
{
// update with new expiratin
entry
.
ExpiredAT
=
time
.
Now
()
.
Add
(
time
.
Second
*
time
.
Duration
(
extendBy
))
.
Unix
()
entry
.
Expiration
=
extendBy
Store
(
key
,
entry
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets