diff options
author | David Baker <dave@matrix.org> | 2016-03-16 15:51:28 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-03-16 15:51:28 +0000 |
commit | 9671e6750c1756c7f76888b87eedfe7516ef748b (patch) | |
tree | c64ed4de3c157929ee5e0f625a4e26fd37e228d5 /synapse/handlers/auth.py | |
parent | Use hs get_clock instead of time.time() (diff) | |
download | synapse-9671e6750c1756c7f76888b87eedfe7516ef748b.tar.xz |
Replace other time.time().
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index dba6c76dfc..9fa8347098 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -27,7 +27,6 @@ import logging import bcrypt import pymacaroons import simplejson -import time import synapse.util.stringutils as stringutils @@ -485,7 +484,7 @@ class AuthHandler(BaseHandler): def _save_session(self, session): # TODO: Persistent storage logger.debug("Saving session %s", session) - session["last_used"] = time.time() + session["last_used"] = self.hs.get_clock().time_msec() self.sessions[session["id"]] = session self._prune_sessions() |