Skip to content

Commit

Permalink
sync nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Dec 24, 2024
1 parent e5bbd53 commit 1da2792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions executor/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ func (ex *Executor) RegisterQuerier() {
if err != nil {
return err
}
hostSync := status.Host != nil && status.Host.Node != nil && status.Host.Node.Syncing != nil && *status.Host.Node.Syncing
childSync := status.Child != nil && status.Child.Node != nil && status.Child.Node.Syncing != nil && *status.Child.Node.Syncing
batchSync := status.BatchSubmitter != nil && status.BatchSubmitter.Node != nil && status.BatchSubmitter.Node.Syncing != nil && *status.BatchSubmitter.Node.Syncing
hostSync := status.Host.Node.Syncing != nil && *status.Host.Node.Syncing
childSync := status.Child.Node.Syncing != nil && *status.Child.Node.Syncing
batchSync := status.BatchSubmitter.Node.Syncing != nil && *status.BatchSubmitter.Node.Syncing
return c.JSON(hostSync && childSync && batchSync)
})
}

0 comments on commit 1da2792

Please sign in to comment.