Skip to content

Commit

Permalink
Update cron.go
Browse files Browse the repository at this point in the history
  • Loading branch information
eyobebisrat authored Jan 26, 2018
1 parent a1cc65a commit 3071150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *Cron) AddFunc(spec string, cmd func()) (string, error) {

// AddJob adds a Job to the Cron to be run on the given schedule.
func (c *Cron) AddJob(spec string, cmd Job) (string, error) {
idV4 , _:= uuid.NewV4()
idv4 , _:= uuid.NewV4()
id := idv4.String()
err := c.AddJobWithID(spec, cmd, id)
return id, err
Expand Down

0 comments on commit 3071150

Please sign in to comment.