diff options
author | Loïc Hoguin <[email protected]> | 2020-11-12 11:25:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-12 11:25:33 +0100 |
commit | 01eb4636f7a25ccdd3099629cb0d580ee8688dcc (patch) | |
tree | 58bfdaebe56bc2aef594858c271768f25a1cfb14 /src/gun_data_h.erl | |
parent | 24f217ee8a45fbc89d4a7615dd0bd360fc839708 (diff) | |
download | gun-01eb4636f7a25ccdd3099629cb0d580ee8688dcc.tar.gz gun-01eb4636f7a25ccdd3099629cb0d580ee8688dcc.tar.bz2 gun-01eb4636f7a25ccdd3099629cb0d580ee8688dcc.zip |
Use gun:stream_ref() where applicable
Diffstat (limited to 'src/gun_data_h.erl')
-rw-r--r-- | src/gun_data_h.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_data_h.erl b/src/gun_data_h.erl index d1f8787..1750ff1 100644 --- a/src/gun_data_h.erl +++ b/src/gun_data_h.erl @@ -20,10 +20,10 @@ -record(state, { reply_to :: pid(), - stream_ref :: reference() + stream_ref :: gun:stream_ref() }). --spec init(pid(), reference(), _, _, _) -> {ok, #state{}}. +-spec init(pid(), gun:stream_ref(), _, _, _) -> {ok, #state{}}. init(ReplyTo, StreamRef, _, _, _) -> {ok, #state{reply_to=ReplyTo, stream_ref=StreamRef}}. |