Skip to content

Commit

Permalink
mozzle: Propagate riemann.Close's return error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo0mer committed Apr 16, 2017
1 parent 69bde1c commit 1c858e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions riemann.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ func (r *riemann) Connect() error {
}

func (r *riemann) Close() error {
// TODO(ivan): Switch to return r.client.Close() once (and if)
// https://github.com/amir/raidman/pull/17 gets merged.
r.client.Close()
return nil
return r.client.Close()
}

func (r *riemann) SendEvent(e *raidman.Event) error {
Expand Down

0 comments on commit 1c858e7

Please sign in to comment.