Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Change err to errp so publish or process plugin errors are checked an…
Browse files Browse the repository at this point in the history
…d returned properly
  • Loading branch information
geauxvirtual committed Oct 5, 2015
1 parent 0c0bb1c commit e2f1ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ func (p *pluginControl) PublishMetrics(contentType string, content []byte, plugi
}

errp := cli.Publish(contentType, content, config)
if err != nil {
if errp != nil {
return []error{errp}
}
ap.hitCount++
Expand Down Expand Up @@ -758,7 +758,7 @@ func (p *pluginControl) ProcessMetrics(contentType string, content []byte, plugi
}

ct, c, errp := cli.Process(contentType, content, config)
if err != nil {
if errp != nil {
return "", nil, []error{errp}
}
ap.hitCount++
Expand Down

0 comments on commit e2f1ae0

Please sign in to comment.