mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
chore: move content update to else statement
This commit is contained in:
parent
19a4d688ae
commit
2c44c41701
@ -38,6 +38,7 @@ func (repo *Repo) updateRoutine() {
|
||||
log.Error("Content update failed", zap.Error(err))
|
||||
status.M.UpdatesFailedCounter.WithLabelValues().Inc()
|
||||
} else {
|
||||
log.Info("Content update success")
|
||||
status.M.UpdatesCompletedCounter.WithLabelValues().Inc()
|
||||
}
|
||||
|
||||
@ -46,7 +47,6 @@ func (repo *Repo) updateRoutine() {
|
||||
err: err,
|
||||
}
|
||||
|
||||
log.Info("Content update completed")
|
||||
status.M.UpdateDuration.WithLabelValues().Observe(time.Since(start).Seconds())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user