Skip to content

Commit

Permalink
Make it even more obvious that Postgres is the default (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Apr 28, 2023
1 parent 2eba8c4 commit de35e8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/oban/peer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ defmodule Oban.Peer do
* `Oban.Peers.Global` — coordinates global locks through distributed Erlang, requires
distributed Erlang.
You can specify the peering module to use in your Oban configuration:
config :my_app, Oban,
peer: Oban.Peers.Postgres, # default value
...
If in doubt, you can call `Oban.config()` to see which module is being used.
## Examples
Check leadership for the default Oban instance:
Expand Down

0 comments on commit de35e8f

Please sign in to comment.