From 01eb4636f7a25ccdd3099629cb0d580ee8688dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 12 Nov 2020 11:25:33 +0100 Subject: Use gun:stream_ref() where applicable --- src/gun_data_h.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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}}. -- cgit v1.2.3