完成数据库令牌清理状态收敛
确保数据库验证令牌单个回收成功后移除过期状态,避免容量统计保留已删除会话。
This commit is contained in:
parent
6711c9bff5
commit
14833be0ab
@ -234,6 +234,7 @@ func (m *DatabaseVerificationManager) Discard(token string) error {
|
||||
m.restoreExpiredSession(entry)
|
||||
return errors.New("数据库临时凭据回收失败")
|
||||
}
|
||||
m.removeExpiredSession(entry)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user