From 3cc34ef88f081cb1efc0626f59a6a7ee9143760a Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Wed, 6 Jul 2022 21:34:53 -0600 Subject: [PATCH] remove threadgroup from FinancialMetrics call --- modules/host/host.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/host/host.go b/modules/host/host.go index bd556b2b4..57d5d92cd 100644 --- a/modules/host/host.go +++ b/modules/host/host.go @@ -648,11 +648,6 @@ func (h *Host) ConnectabilityStatus() modules.HostConnectabilityStatus { // FinancialMetrics returns information about the financial commitments, // rewards, and activities of the host. func (h *Host) FinancialMetrics() modules.HostFinancialMetrics { - err := h.tg.Add() - if err != nil { - build.Critical("Call to FinancialMetrics after close") - } - defer h.tg.Done() h.mu.RLock() defer h.mu.RUnlock() return h.financialMetrics