From 03490c811ba71d219e309710ab38913ac9a1a601 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Thu, 17 Sep 2020 10:10:20 -0700 Subject: [PATCH] Fix obd goroutine leak (#10504) The gouroutine collecting transfer stats never exits. Add missing channel close. --- cmd/peer-rest-client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/peer-rest-client.go b/cmd/peer-rest-client.go index 4a22a6263..13f7cc5af 100644 --- a/cmd/peer-rest-client.go +++ b/cmd/peer-rest-client.go @@ -232,6 +232,7 @@ func (client *peerRESTClient) doNetOBDTest(ctx context.Context, dataSize int64, } } wg.Wait() + close(transferChan) if err != nil { return info, err