fix: error request to delete ready ip.
This commit is contained in:
parent
c5bb70cf52
commit
4149ea8d0f
3
dip.go
3
dip.go
|
@ -77,6 +77,7 @@ func (group *DIPGroup) Choose(addr string) {
|
|||
if _, err := requests.NewSession().Get(restartAddr).Execute(); err != nil {
|
||||
log.Println(err)
|
||||
group.Current.ActiveTime += 12
|
||||
return
|
||||
} else {
|
||||
group.Current = dhost
|
||||
group.Current.ActiveTime = now
|
||||
|
@ -88,7 +89,7 @@ func (group *DIPGroup) Choose(addr string) {
|
|||
group.Waitor[ip] = group.Ready[ip]
|
||||
delete(group.Ready, ip)
|
||||
|
||||
break
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user