Skip to content

Commit

Permalink
fix: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Dec 19, 2023
1 parent 6cfb375 commit c8ef93f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func (c *Cron) AddJob(id string, spec string, job func() error) error {
return err
}

fmt.Println("asdasd:", id)
if err := c.cache.Set(id, innerID); err != nil {
if err := c.cache.Set(id, &innerID); err != nil {
return err
}

Expand Down

0 comments on commit c8ef93f

Please sign in to comment.