Skip to content

Commit

Permalink
server/handler: tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huachaohuang committed Dec 7, 2016
1 parent cf97023 commit 9093d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *Handler) AddLeaderScheduler(s Scheduler) error {
if err != nil {
return errors.Trace(err)
}
if !c.addScheduler(s, newLeaderController(c)) {
if !c.addScheduler(newLeaderScheduleController(c, s)) {
return errors.Errorf("scheduler %q exists", s.GetName())
}
return nil
Expand Down

0 comments on commit 9093d4a

Please sign in to comment.