fix: incorrect struct tag and WaitGroup usage (#6649)
* remove duplicated json tag * fix: incorrect wait group usage
This commit is contained in:
parent
6c9a99fb3a
commit
e210b0c854
|
@ -610,7 +610,7 @@ type Performance struct {
|
||||||
|
|
||||||
type Telemetry struct {
|
type Telemetry struct {
|
||||||
CirconusAPIApp *string `json:"circonus_api_app,omitempty" hcl:"circonus_api_app" mapstructure:"circonus_api_app"`
|
CirconusAPIApp *string `json:"circonus_api_app,omitempty" hcl:"circonus_api_app" mapstructure:"circonus_api_app"`
|
||||||
CirconusAPIToken *string `json:"circonus_api_token,omitempty" json:"-" hcl:"circonus_api_token" mapstructure:"circonus_api_token" json:"-"`
|
CirconusAPIToken *string `json:"circonus_api_token,omitempty" hcl:"circonus_api_token" mapstructure:"circonus_api_token"`
|
||||||
CirconusAPIURL *string `json:"circonus_api_url,omitempty" hcl:"circonus_api_url" mapstructure:"circonus_api_url"`
|
CirconusAPIURL *string `json:"circonus_api_url,omitempty" hcl:"circonus_api_url" mapstructure:"circonus_api_url"`
|
||||||
CirconusBrokerID *string `json:"circonus_broker_id,omitempty" hcl:"circonus_broker_id" mapstructure:"circonus_broker_id"`
|
CirconusBrokerID *string `json:"circonus_broker_id,omitempty" hcl:"circonus_broker_id" mapstructure:"circonus_broker_id"`
|
||||||
CirconusBrokerSelectTag *string `json:"circonus_broker_select_tag,omitempty" hcl:"circonus_broker_select_tag" mapstructure:"circonus_broker_select_tag"`
|
CirconusBrokerSelectTag *string `json:"circonus_broker_select_tag,omitempty" hcl:"circonus_broker_select_tag" mapstructure:"circonus_broker_select_tag"`
|
||||||
|
|
|
@ -428,9 +428,8 @@ func (c *cmd) captureDynamic() error {
|
||||||
s = 1
|
s = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wgProf.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
wgProf.Add(1)
|
|
||||||
|
|
||||||
prof, err := c.client.Debug().Profile(int(s))
|
prof, err := c.client.Debug().Profile(int(s))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errCh <- err
|
errCh <- err
|
||||||
|
@ -444,9 +443,8 @@ func (c *cmd) captureDynamic() error {
|
||||||
wgProf.Done()
|
wgProf.Done()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
wgProf.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
wgProf.Add(1)
|
|
||||||
|
|
||||||
trace, err := c.client.Debug().Trace(int(s))
|
trace, err := c.client.Debug().Trace(int(s))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errCh <- err
|
errCh <- err
|
||||||
|
|
Loading…
Reference in New Issue