From e58913fbd11b22646859508adbe78196e2a789f6 Mon Sep 17 00:00:00 2001 From: manisha kumari Date: Wed, 25 Sep 2024 16:38:21 +0530 Subject: [PATCH] ttl hardcoding removed Signed-off-by: manisha kumari --- backend/store/etcd/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/store/etcd/session.go b/backend/store/etcd/session.go index 2af98e839..91fdaa8f5 100644 --- a/backend/store/etcd/session.go +++ b/backend/store/etcd/session.go @@ -30,7 +30,7 @@ func (s *Store) GetSession(ctx context.Context, username, sessionID string) (str } // UpdateSession applies the supplied state to the session uniquely identified -// by the given username and session ID with attached lease for TTL of the key +// by the given username and session ID with attached lease and TTl for each key func (s *Store) UpdateSession(ctx context.Context, username, sessionID, state string) error { leaseDuration := jwt.DefaultAccessTokenLifespan