forked from mystiq/dex
Merge pull request #106 from bobbyrullo/shadow_stevens
cmd/dex-overlord: was using the wrong err
This commit is contained in:
commit
ff71593cd7
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ func main() {
|
||||||
if *dbMigrate {
|
if *dbMigrate {
|
||||||
var sleep time.Duration
|
var sleep time.Duration
|
||||||
for {
|
for {
|
||||||
if migrations, err := db.MigrateToLatest(dbc); err == nil {
|
var err error
|
||||||
|
var migrations int
|
||||||
|
if migrations, err = db.MigrateToLatest(dbc); err == nil {
|
||||||
log.Infof("Performed %d db migrations", migrations)
|
log.Infof("Performed %d db migrations", migrations)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue