mirror of https://github.com/status-im/consul.git
fix: incorrect struct tag and WaitGroup usage (#6649)
* remove duplicated json tag * fix: incorrect wait group usage
This commit is contained in:
parent
d0f14cb5c0
commit
86c8e48dd9
|
@ -610,7 +610,7 @@ type Performance struct {
|
|||
|
||||
type Telemetry struct {
|
||||
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"`
|
||||
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"`
|
||||
|
|
|
@ -428,9 +428,8 @@ func (c *cmd) captureDynamic() error {
|
|||
s = 1
|
||||
}
|
||||
|
||||
wgProf.Add(1)
|
||||
go func() {
|
||||
wgProf.Add(1)
|
||||
|
||||
prof, err := c.client.Debug().Profile(int(s))
|
||||
if err != nil {
|
||||
errCh <- err
|
||||
|
@ -444,9 +443,8 @@ func (c *cmd) captureDynamic() error {
|
|||
wgProf.Done()
|
||||
}()
|
||||
|
||||
wgProf.Add(1)
|
||||
go func() {
|
||||
wgProf.Add(1)
|
||||
|
||||
trace, err := c.client.Debug().Trace(int(s))
|
||||
if err != nil {
|
||||
errCh <- err
|
||||
|
|
Loading…
Reference in New Issue