Skip to content

Commit fabcf40

Browse files
committed
feat: dont raise error if proxy doesnt exists at removal time
1 parent 76541cd commit fabcf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (m *Manager) Remove(pr ProxyRecord) (bool, error) {
6868
// check if the proxy exists
6969
if _, ok := m.ProxyMap[pr.String()]; !ok {
7070
m.Mutex.RUnlock()
71-
return false, errors.New("proxy does not exist")
71+
return true, nil
7272
}
7373
m.Mutex.RUnlock()
7474
m.Mutex.Lock()

0 commit comments

Comments
 (0)