Skip to content

Commit

Permalink
fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Dec 22, 2022
1 parent 5d762c4 commit 0b505f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
task := boomerang.NewTask(
"greeter",
"some-unique-id",
"Hello!",
[]byte("Hello!"),
)

// Schedule task for execution every second starting from now
Expand All @@ -39,7 +39,7 @@ func main() {
}

sch.On(ctx, "greeter", func(ctx context.Context, task *boomerang.Task) {
fmt.Println(task.Data)
fmt.Printf("%s\n", task.Data)
})
}
```

0 comments on commit 0b505f5

Please sign in to comment.