Skip to content

Commit d41347a

Browse files
committed
Fix handle gun_down event
Since gun 2.0 the `gun_down` message no longer has its final element documented as `UnprocessedStreams`.
1 parent 390bc76 commit d41347a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eetcd_conn.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ handle_event({call, From}, {?flush_token, Gun, Token}, _StateName, Data) ->
145145
{keep_state, NewData, [{reply, From, NewToken}]};
146146
handle_event(info, {'DOWN', _GunRef, process, Gun, _Reason}, _StateName, Data) ->
147147
handle_conn_down(Data, Gun);
148-
handle_event(info, {gun_down, Gun, http2, _Error, _KilledStreams, _UnprocessedStreams}, _StateName, Data) ->
148+
handle_event(info, {gun_down, Gun, http2, _Error, _KilledStreams}, _StateName, Data) ->
149149
handle_conn_down(Data, Gun);
150150
handle_event(EventType, reconnecting, _StateName, Data)
151151
when EventType =:= internal orelse EventType =:= info ->

0 commit comments

Comments
 (0)