Open ishikawa opened 4 years ago
Running the Dialyzer under Erlang 21.3 and Elixir 1.8.1 environment failed with errors (Job #630850457):
lib/ace/http2/connection.ex:37: Function init/1 has no local return
done (warnings were emitted)
The command "mix dialyzer --halt-exit-status" exited with 2.
I found that this problem could be fixed with upgrading Erlang/OTP to 21.3.8 (Job #631233171). So I changed the version of OTP in travis.yml
in the commit ee43e18.
But the Dialyzer still fails under Elixir 1.7.4 environment :thinking:
@ishikawa this might be fixed by dropping support for older Elixir versions. I am thinking of supporting 1.9 and 1.10 only from the next release.
@CrowdHailer Thanks for your reply. In the meantime, I merged the master branch 😄
Because the Dialyzer had emitted some errors when compiling with this library, so I added/fixed some type specs.
Ace.HTTP.Service.service
toGenServer.server
-GenServer.call/2
can take several type of argument other thanpid
.Ace.HTTP.Service.start_link/2
actually invokeGenServer.start_link/3
, so changed the return type of the function toGenServer.on_start
which allows{:error, term}
too.Ace.HTTP2.Settings
.