Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#652 from hex108/option
Browse files Browse the repository at this point in the history
Change run option SchedulePeriod's type to make it clear
  • Loading branch information
k8s-ci-robot authored Mar 20, 2019
2 parents ee83a20 + 7f18c33 commit 232f369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ func NewScheduler(
config *rest.Config,
schedulerName string,
conf string,
period string,
period time.Duration,
defaultQueue string,
) (*Scheduler, error) {
sp, _ := time.ParseDuration(period)
scheduler := &Scheduler{
config: config,
schedulerConf: conf,
cache: schedcache.New(config, schedulerName, defaultQueue),
schedulePeriod: sp,
schedulePeriod: period,
}

return scheduler, nil
Expand Down

0 comments on commit 232f369

Please sign in to comment.