CrowdHailer / Ace

HTTP web server and client, supports http1 and http2
https://hex.pm/packages/ace
MIT License
304 stars 26 forks source link

Add and fix some type specs #139

Open ishikawa opened 4 years ago

ishikawa commented 4 years ago

Because the Dialyzer had emitted some errors when compiling with this library, so I added/fixed some type specs.

ishikawa commented 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:

CrowdHailer commented 4 years ago

@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.

ishikawa commented 4 years ago

@CrowdHailer Thanks for your reply. In the meantime, I merged the master branch 😄