延迟释放端口
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
m "platform/web/models"
|
m "platform/web/models"
|
||||||
q "platform/web/queries"
|
q "platform/web/queries"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"gorm.io/gen/field"
|
"gorm.io/gen/field"
|
||||||
)
|
)
|
||||||
@@ -130,7 +131,12 @@ func (s *channelGostProvider) removeRemote(batchNo string, batch *usedChanBatch)
|
|||||||
return client.DeleteAdmission(admissionName)
|
return client.DeleteAdmission(admissionName)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
return u.CombineErrors(deleteErrs)
|
if len(deleteErrs) != 0 {
|
||||||
|
return u.CombineErrors(deleteErrs)
|
||||||
|
}
|
||||||
|
|
||||||
|
time.Sleep(time.Millisecond * 200)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *channelGostProvider) selectProxy(count int) (*m.Proxy, error) {
|
func (s *channelGostProvider) selectProxy(count int) (*m.Proxy, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user