mirror of
https://github.com/benbusby/farside.git
synced 2025-04-29 23:20:03 +00:00
Validate status code for all service instances
Updated to filter out all instances that either time out (I believe default timeout for HTTPoison is 5s) or return a non-200 status code.
This commit is contained in:
parent
cf8dfc5a85
commit
b0953f0777
4 changed files with 30 additions and 8 deletions
3
mix.exs
3
mix.exs
|
@ -24,7 +24,8 @@ defmodule RouterExample.MixProject do
|
|||
[
|
||||
{:jason, "~> 1.1"},
|
||||
{:plug_cowboy, "~> 2.0"},
|
||||
{:poison, "~> 5.0"}
|
||||
{:poison, "~> 5.0"},
|
||||
{:httpoison, "~> 1.8"}
|
||||
]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue