Skip to content

Commit

Permalink
Refactor main for new interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNix committed May 12, 2023
1 parent cd71124 commit 227c416
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ func buildCosmosJobs(cosmosMets *metrics.Cosmos, refMets *metrics.ReferenceAPI,
}

restClient := cosmos.NewRestClient(metrics.NewFallbackClient(httpClient, refMets, urls))
restJobs := cosmos.NewRestJob(cosmosMets, restClient, cfg.Cosmos)
jobs = append(jobs, toJobs(restJobs)...)
valJobs := cosmos.BuildValidatorJobs(cosmosMets, restClient, cfg.Cosmos)
jobs = append(jobs, cosmos.NewRestJob(cosmosMets, restClient, chain))
valJobs := cosmos.BuildValidatorJobs(cosmosMets, restClient, chain)
jobs = append(jobs, toJobs(valJobs)...)
}

Expand Down

0 comments on commit 227c416

Please sign in to comment.