mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 00:54:23 -05:00
Replace other time.time().
This commit is contained in:
parent
742b6c6d15
commit
9671e6750c
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user