Skip to content

Commit

Permalink
Change run option SchedulePeriod's type to make it clear
Browse files Browse the repository at this point in the history
  • Loading branch information
hex108 committed Mar 20, 2019
1 parent 29fde37 commit 979fe2e
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 979fe2e

Please sign in to comment.