-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gun adapter #304
Gun adapter #304
Conversation
lib/tesla/adapter/gun.ex
Outdated
IO.inspect(msg) | ||
IO.inspect("unsupported message received in read response.") | ||
msg | ||
end |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
lib/tesla/adapter/gun.ex
Outdated
msg -> | ||
IO.inspect(msg) | ||
IO.inspect("unsupported message received in read body.") | ||
msg |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
lib/tesla/adapter/gun.ex
Outdated
|
||
msg -> | ||
IO.inspect(msg) | ||
IO.inspect("unsupported message received in read response.") |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
lib/tesla/adapter/gun.ex
Outdated
defp read_response(pid, stream, opts) do | ||
receive do | ||
msg -> | ||
case msg do |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
lib/tesla/adapter/gun.ex
Outdated
|
||
receive do | ||
msg -> | ||
case msg do |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
=========================================
- Coverage 95.43% 94.14% -1.3%
=========================================
Files 23 24 +1
Lines 460 512 +52
=========================================
+ Hits 439 482 +43
- Misses 21 30 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
==========================================
- Coverage 95.43% 94.85% -0.59%
==========================================
Files 23 24 +1
Lines 460 505 +45
==========================================
+ Hits 439 479 +40
- Misses 21 26 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE! 👏
The only thing I'm not really sure about are the exposed options, I'd rather keep them to the minimum, do not set another custom set of defaults and just refer to gun's documentation instead.
@teamon could you give this another review please? |
Please rebase to recent master (it includes CI fixes). Once all the tests pass I'd be happy to merge this MR 🚀 |
added gun_down, gun_error message types
Co-Authored-By: rinpatch <[email protected]>
Co-Authored-By: Tymon Tobolski <[email protected]>
Co-Authored-By: Tymon Tobolski <[email protected]>
added fallback adapter timeout option error naming standardization
@teamon can elixir 1.4.5 and otp 18 be removed? |
I’m currently on holidays, I’ll get back to you next week.
…On 18 Jul 2019, 12:55 +0300, Alexander Strizhakov ***@***.***>, wrote:
@teamon can elixir 1.4.5 and otp 18 be removed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Dropping support for elixir 1.4 & otp 18 would be a breaking change and would require releasing tesla 2.0. However, if there is no easy way to provide 1.4 support I'm ok with that, 1.4 caused few other issues already and we have elixir 1.19 already. |
How it can be done? |
@alex-strizhakov And do we have to bump httparrot? :) |
@teamon without update of httparrot we need to have |
... and Ok, let's drop 1.4 & 18 🔥 |
|
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
==========================================
- Coverage 95.43% 94.85% -0.59%
==========================================
Files 23 24 +1
Lines 460 505 +45
==========================================
+ Hits 439 479 +40
- Misses 21 26 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
==========================================
- Coverage 95.43% 95.19% -0.25%
==========================================
Files 23 25 +2
Lines 460 520 +60
==========================================
+ Hits 439 495 +56
- Misses 21 25 +4
Continue to review full report at Codecov.
|
Adapter for gun - https://github.com/ninenines/gun
Added custom option - max_body.