From 38031e4bb7d672d7027f82e89cde23eb728c0077 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 30 Nov 2023 09:54:49 -0600 Subject: [PATCH] Add comment to GetHarvesters function --- internal/metrics/farmer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/metrics/farmer.go b/internal/metrics/farmer.go index 40b0395..b9a9b16 100644 --- a/internal/metrics/farmer.go +++ b/internal/metrics/farmer.go @@ -137,6 +137,7 @@ func (s *FarmerServiceMetrics) GetConnections(resp *types.WebsocketResponse) { s.GetHarvesters() } +// GetHarvesters loads data about harvesters connected to the farmer func (s *FarmerServiceMetrics) GetHarvesters() { if s.gettingHarvesters { log.Debug("Skipping get_harvesters since another request is already in flight")