Skip to content

Commit

Permalink
keystone: fix db not sync
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi committed May 20, 2020
1 parent cd31781 commit 9a6065f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/keystone/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ func StartService() {

app := app_common.InitApp(&opts.BaseOptions, true)

InitHandlers(app)
db.EnsureAppInitSyncDB(app, &opts.DBOptions, models.InitDB)

app_common.InitBaseAuth(&opts.BaseOptions)

common_options.StartOptionManagerWithSessionDriver(opts, opts.ConfigSyncPeriodSeconds, api.SERVICE_TYPE, "", options.OnOptionsChange, models.NewServiceConfigSession())

InitHandlers(app)

if !opts.IsSlaveNode {
cron := cronman.InitCronJobManager(true, opts.CronJobWorkerCount)

Expand Down

0 comments on commit 9a6065f

Please sign in to comment.