fix: rebuild judge pool

This commit is contained in:
710leo 2020-03-30 17:52:39 +08:00
parent 5931481c03
commit 5e7bfed6af
1 changed files with 2 additions and 1 deletions

View File

@ -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)