fix(cron): avoid reload error shadowing
This commit is contained in:
parent
f48eea6c73
commit
ee2fca25fa
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ func (cs *CronService) executeJobByID(jobID string) {
|
|||
cs.mu.Lock()
|
||||
defer cs.mu.Unlock()
|
||||
|
||||
if err := cs.reloadStoreUnsafe(); err != nil {
|
||||
log.Printf("[cron] failed to reload store before updating job state: %v", err)
|
||||
if reloadErr := cs.reloadStoreUnsafe(); reloadErr != nil {
|
||||
log.Printf("[cron] failed to reload store before updating job state: %v", reloadErr)
|
||||
}
|
||||
|
||||
var job *CronJob
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue