Skip to content

Commit

Permalink
docs: code comment for Name() (go-co-op#489)
Browse files Browse the repository at this point in the history
* docs: code comment for Name()

* Update scheduler.go

---------

Co-authored-by: John Roesler <[email protected]>
  • Loading branch information
rfyiamcool and JohnRoesler authored May 13, 2023
1 parent 48fade6 commit 708215c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (s *Scheduler) Jobs() []*Job {
// Name sets the name of the current job.
//
// If the scheduler is running using WithDistributedLocker(), the job name is used
// as the distributed lock key.
// as the distributed lock key. If the job name is not set, the function name is used as the distributed lock key.
func (s *Scheduler) Name(name string) *Scheduler {
job := s.getCurrentJob()
job.jobName = name
Expand Down

0 comments on commit 708215c

Please sign in to comment.