diff --git a/guides/upgrading/v2.0.md b/guides/upgrading/v2.0.md index 4a2e7195..7f270342 100644 --- a/guides/upgrading/v2.0.md +++ b/guides/upgrading/v2.0.md @@ -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 diff --git a/lib/oban/plugins/reindexer.ex b/lib/oban/plugins/reindexer.ex index e34bfe28..82aab084 100644 --- a/lib/oban/plugins/reindexer.ex +++ b/lib/oban/plugins/reindexer.ex @@ -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 diff --git a/lib/oban/validation.ex b/lib/oban/validation.ex index 9c45c4c3..5bf0c8c4 100644 --- a/lib/oban/validation.ex +++ b/lib/oban/validation.ex @@ -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 diff --git a/test/oban/peers/postgres_test.exs b/test/oban/peers/postgres_test.exs index c81f9a63..551bee1c 100644 --- a/test/oban/peers/postgres_test.exs +++ b/test/oban/peers/postgres_test.exs @@ -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 =