File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,9 @@ func (c *Challenger) RegisterQuerier() {
231
231
if err != nil {
232
232
return err
233
233
}
234
- return ctx .JSON (* status .Host .Node .Syncing && * status .Child .Node .Syncing )
234
+ hostSync := status .Host .Node .Syncing != nil && * status .Host .Node .Syncing
235
+ childSync := status .Child .Node .Syncing != nil && * status .Child .Node .Syncing
236
+ return ctx .JSON (hostSync || childSync )
235
237
})
236
238
}
237
239
Original file line number Diff line number Diff line change @@ -74,6 +74,6 @@ func (ex *Executor) RegisterQuerier() {
74
74
hostSync := status .Host .Node .Syncing != nil && * status .Host .Node .Syncing
75
75
childSync := status .Child .Node .Syncing != nil && * status .Child .Node .Syncing
76
76
batchSync := status .BatchSubmitter .Node .Syncing != nil && * status .BatchSubmitter .Node .Syncing
77
- return c .JSON (hostSync && childSync && batchSync )
77
+ return c .JSON (hostSync || childSync || batchSync )
78
78
})
79
79
}
You can’t perform that action at this time.
0 commit comments