nomad: fix Eval.Dequeue forwarding

This commit is contained in:
Armon Dadgar 2015-07-28 15:01:29 -07:00
parent 4be2c1b9db
commit 8f2b878ea8

View file

@ -57,7 +57,7 @@ func (e *Eval) GetEval(args *structs.EvalSpecificRequest,
// Dequeue is used to dequeue a pending evaluation
func (e *Eval) Dequeue(args *structs.EvalDequeueRequest,
reply *structs.SingleEvalResponse) error {
if done, err := e.srv.forward("Eval.GetEval", args, args, reply); done {
if done, err := e.srv.forward("Eval.Dequeue", args, args, reply); done {
return err
}
defer metrics.MeasureSince([]string{"nomad", "eval", "dequeue"}, time.Now())