Optimizations

This commit is contained in:
binwiederhier
2026-02-23 14:11:36 -05:00
parent b02366b42b
commit 28a436c0d2
6 changed files with 25 additions and 12 deletions

View File

@@ -281,11 +281,8 @@ func (a *Manager) writeTokenUpdateQueue() error {
log.Tag(tag).Debug("Writing token update queue for %d token(s)", len(tokenQueue))
for tokenID, update := range tokenQueue {
log.Tag(tag).Trace("Updating token %s with last access time %v", tokenID, update.LastAccess.Unix())
if err := a.store.UpdateTokenLastAccess(tokenID, update.LastAccess, update.LastOrigin); err != nil {
return err
}
}
return nil
return a.store.UpdateTokenLastAccess(tokenQueue)
}
// Authorize returns nil if the given user has access to the given topic using the desired