Clean Up Methods In Prysm (#9903)

* clean up

* go simple
This commit is contained in:
Nishant Das
2021-11-15 23:13:52 +08:00
committed by GitHub
parent 4a4a7e97df
commit 9d678b0c47
18 changed files with 20 additions and 415 deletions

View File

@@ -76,7 +76,7 @@ func NewValidatorScraper(promExpoURL string) Scraper {
// will be used.
func scrapeProm(url string, tripper http.RoundTripper) (map[string]*dto.MetricFamily, error) {
mfChan := make(chan *dto.MetricFamily)
errChan := make(chan error)
errChan := make(chan error, 1)
go func() {
// FetchMetricFamilies handles grpc flavored prometheus ez
// but at the cost of the awkward channel select loop below