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