Skip to content

Commit

Permalink
Remove extra useless locking introduced in 88c072c
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Nov 20, 2018
1 parent 70d9229 commit 712be35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dkron/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ func (s *Store) SetJob(job *Job, copyDependentJobs bool) error {
return err
}
if ej != nil {
ej.Lock()
ej.Unlock()
// When the job runs, these status vars are updated
// otherwise use the ones that are stored
if ej.LastError.After(job.LastError) {
Expand Down

0 comments on commit 712be35

Please sign in to comment.