aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-23 12:44:35 +0200
committerLoïc Hoguin <[email protected]>2019-09-23 12:44:48 +0200
commit76665f40b15111842cc04d7c7c92e46d64220812 (patch)
treec039bf17160186e80424c35cbb3fb232e84d4e26
parent3c648709aa4e51a8ae8b5a46cdb94132397ea8ef (diff)
downloadgun-76665f40b15111842cc04d7c7c92e46d64220812.tar.gz
gun-76665f40b15111842cc04d7c7c92e46d64220812.tar.bz2
gun-76665f40b15111842cc04d7c7c92e46d64220812.zip
Use the proper options type for socks/ws states
-rw-r--r--src/gun_socks.erl2
-rw-r--r--src/gun_ws.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_socks.erl b/src/gun_socks.erl
index 0427cb1..928af56 100644
--- a/src/gun_socks.erl
+++ b/src/gun_socks.erl
@@ -29,7 +29,7 @@
owner :: pid(),
socket :: inet:socket() | ssl:sslsocket(),
transport :: module(),
- opts = #{} :: map(), %% @todo
+ opts = #{} :: gun:socks_opts(),
%% We only support version 5 at the moment.
version :: 5,
status :: auth_method_select | auth_username_password | connect
diff --git a/src/gun_ws.erl b/src/gun_ws.erl
index 60926f2..a6dcb00 100644
--- a/src/gun_ws.erl
+++ b/src/gun_ws.erl
@@ -41,7 +41,7 @@
stream_ref :: reference(),
socket :: inet:socket() | ssl:sslsocket(),
transport :: module(),
- opts = #{} :: map(), %% @todo
+ opts = #{} :: gun:ws_opts(),
buffer = <<>> :: binary(),
in = head :: head | #payload{} | close,
out = head :: head | close,