Skip to content

Commit

Permalink
More typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 26, 2024
1 parent 07b32b9 commit aab06ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion guides/upgrading/v2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Telemetry event names have changed, along with some of the metadata and timing
units. The new event names are consistent and align with the now-standard
`telemetry:span` conventions.

Update handlers to and match on the new event names:
Update handlers to match on the new event names:

```diff
- def handle_event([:oban, :failure], measure, meta, _) do
Expand Down
2 changes: 1 addition & 1 deletion lib/oban/plugins/reindexer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Oban.Plugins.Reindexer do
The plugin uses `REINDEX` with the `CONCURRENTLY` option to rebuild without taking any locks
that prevent concurrent inserts, updates, or deletes on the table.
Note: This plugin requires the `CONCURRENT` option, which is only available in Postgres 12 and
Note: This plugin requires the `CONCURRENTLY` option, which is only available in Postgres 12 and
above.
## Using the Plugin
Expand Down
2 changes: 1 addition & 1 deletion lib/oban/validation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ defmodule Oban.Validation do
if val in list do
:ok
else
{:error, "expected #{inspect(key)} to included in #{inspect(list)}, got: #{inspect(val)}"}
{:error, "expected #{inspect(key)} to be included in #{inspect(list)}, got: #{inspect(val)}"}
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/oban/peers/postgres_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule Oban.Peers.PostgresTest do
assert_received {:event, [:election, :stop], _measure, %{leader: _, peer: Postgres}}
end

test "gacefully handling a missing oban_peers table" do
test "gracefully handling a missing oban_peers table" do
mangle_peers_table!()

logged =
Expand Down

0 comments on commit aab06ab

Please sign in to comment.