Skip to content

Commit

Permalink
feat: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Jul 1, 2024
1 parent b0eb506 commit a6e5f1c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/collectors/zapiperf/zapiperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,13 @@ func (z *ZapiPerf) Init(a *collector.AbstractCollector) error {
return err
}

if err := z.InitQOS(); err != nil {
return err
}
z.InitQOS()

z.Logger.Debug().Msg("initialized")
return nil
}

func (z *ZapiPerf) InitQOS() error {
func (z *ZapiPerf) InitQOS() {
counters := z.Params.GetChildS("counters")
if counters != nil {
refine := counters.GetChildS("refine")
Expand All @@ -137,7 +136,6 @@ func (z *ZapiPerf) InitQOS() error {
}
}
}
return nil
}

func (z *ZapiPerf) LoadPlugin(kind string, abc *plugin.AbstractPlugin) plugin.Plugin {
Expand Down

0 comments on commit a6e5f1c

Please sign in to comment.