Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gax): invalid spec in Connection/Response modules
It may trigger invalid dialyzer warnings in apps. For example, for this piece of code: ```elixir case Client.indexing_url_notifications_publish( connection, [ {:body, payload} ]) do {:ok, _} -> :ok {:error, %{status: 429}} -> {:discard, "Rate-limiting error, please check the quota."} {:error, :timeout} -> ... end ``` For the clause `{:error, :timeout}`, dialyzer says `The pattern can never match the type`. However, it is possible to have `{:error, :timeout}` when Connection fails (because of a timeout).
- Loading branch information