diff --git a/lib/broadway_cloud_pub_sub/pull_client.ex b/lib/broadway_cloud_pub_sub/pull_client.ex index b74f72c..93b8ca8 100644 --- a/lib/broadway_cloud_pub_sub/pull_client.ex +++ b/lib/broadway_cloud_pub_sub/pull_client.ex @@ -222,7 +222,7 @@ defmodule BroadwayCloudPubSub.PullClient do end defp should_retry(%Response{status: status}, config, retries_left) do - status in retry_codes(config) and retries_left > 0 + retries_left > 0 and status in retry_codes(config) end defp max_retries(config) do