Skip to content

Commit

Permalink
Update README.md (#568)
Browse files Browse the repository at this point in the history
Standardizes the codeblocks (noticed one was missing a language tag).
  • Loading branch information
stefanvanburen authored Aug 28, 2024
1 parent 231d821 commit bbb4a98
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ It's often desirable to have a client that'll be used for inserting jobs, but
not working them. This is possible by omitting the `Queues` configuration, and
skipping the call to `Start`:

riverClient, err := river.NewClient(riverpgxv5.New(dbPool), &river.Config{
Workers: workers,
})
if err != nil {
panic(err)
}
```go
riverClient, err := river.NewClient(riverpgxv5.New(dbPool), &river.Config{
Workers: workers,
})
if err != nil {
panic(err)
}
```

`Workers` can also be omitted, but it's better to include it so River can check
that inserted job kinds have a worker that can run them.
Expand Down

0 comments on commit bbb4a98

Please sign in to comment.