fix: incorrect struct tag and WaitGroup usage (#6649)

* remove duplicated json tag

* fix: incorrect wait group usage
This commit is contained in:
rerorero 2019-10-19 02:59:29 +09:00 committed by Matt Keeler
parent 6c9a99fb3a
commit e210b0c854
2 changed files with 3 additions and 5 deletions

View File

@ -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"`

View File

@ -428,9 +428,8 @@ func (c *cmd) captureDynamic() error {
s = 1
}
go func() {
wgProf.Add(1)
go func() {
prof, err := c.client.Debug().Profile(int(s))
if err != nil {
errCh <- err
@ -444,9 +443,8 @@ func (c *cmd) captureDynamic() error {
wgProf.Done()
}()
go func() {
wgProf.Add(1)
go func() {
trace, err := c.client.Debug().Trace(int(s))
if err != nil {
errCh <- err