mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 07:51:28 +02:00
performance improvement and small fix on loadbalancer
This commit is contained in:
@@ -133,7 +133,7 @@ func ConnectClient(host string) (Client, E.NestedError) {
|
||||
}
|
||||
|
||||
func CloseAllClients() {
|
||||
clientMap.RangeAll(func(_ string, c Client) {
|
||||
clientMap.RangeAllParallel(func(_ string, c Client) {
|
||||
c.Client.Close()
|
||||
})
|
||||
clientMap.Clear()
|
||||
|
||||
Reference in New Issue
Block a user