Skip to content

Commit

Permalink
cmd: fix rule processing examples
Browse files Browse the repository at this point in the history
  • Loading branch information
James DeFelice committed May 30, 2017
1 parent 01fcc24 commit b0413ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/v1/cmd/example-scheduler/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ func trackOffersReceived(state *internalState) eventrules.Rule {
if err == nil {
state.metricsAPI.offersReceived.Int(len(e.GetOffers().GetOffers()))
}
return chain(e, nil)

return chain(e, err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion api/v1/cmd/msh/msh.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func maybeDeclineOffers(caller calls.Caller) eventrules.Rule {
// we shouldn't have received offers, maybe the prior suppress call failed?
err = calls.CallNoData(caller, calls.Suppress())
}
return nil, err // drop
return e, err // drop
}
}

Expand Down

0 comments on commit b0413ba

Please sign in to comment.