fix(agent): remove agent properly on verify error

This commit is contained in:
yusing
2025-04-15 05:33:09 +08:00
parent 08b262d94b
commit 4d88d59100
2 changed files with 10 additions and 3 deletions

View File

@@ -26,6 +26,10 @@ func (p Pool[T]) Add(obj T) {
p.m.Store(obj.Key(), obj)
}
func (p Pool[T]) Del(obj T) {
p.m.Delete(obj.Key())
}
func (p Pool[T]) Get(key string) (T, bool) {
return p.m.Load(key)
}