Skip to content

Commit

Permalink
refact: get value from opt param
Browse files Browse the repository at this point in the history
  • Loading branch information
lowang-bh committed Nov 24, 2023
1 parent cccda37 commit ffa90da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func NewScheduler(config *rest.Config, opt *options.ServerOption) (*Scheduler, e
fileWatcher: watcher,
cache: cache,
schedulePeriod: opt.SchedulePeriod,
dumper: schedcache.Dumper{Cache: cache, RootDir: options.ServerOpts.CacheDumpFileDir},
dumper: schedcache.Dumper{Cache: cache, RootDir: opt.CacheDumpFileDir},
}

return scheduler, nil
Expand Down

0 comments on commit ffa90da

Please sign in to comment.