fix: rebuild judge pool
This commit is contained in:
parent
5931481c03
commit
5e7bfed6af
|
@ -12,7 +12,8 @@ func RebuildJudgePool() {
|
|||
<-t1.C
|
||||
judges := backend.GetJudges()
|
||||
if len(judges) == 0 {
|
||||
return
|
||||
//防止心跳服务故障导致judge不可用,如果judges个数为0,先不更新judge连接池
|
||||
continue
|
||||
}
|
||||
|
||||
backend.JudgeConnPools.Update(judges)
|
||||
|
|
Loading…
Reference in New Issue