Fix obd goroutine leak (#10504)

The gouroutine collecting transfer stats never exits. Add missing channel close.
master
Klaus Post 4 years ago committed by GitHub
parent 48d2c03250
commit 03490c811b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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

Loading…
Cancel
Save