From d41347a772d6c9d45956e6fa3457081a30c8c306 Mon Sep 17 00:00:00 2001 From: Zhongqiu Zhao Date: Mon, 1 Apr 2024 13:38:30 +0800 Subject: [PATCH] Fix handle gun_down event Since gun 2.0 the `gun_down` message no longer has its final element documented as `UnprocessedStreams`. --- src/eetcd_conn.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eetcd_conn.erl b/src/eetcd_conn.erl index edffb65..28341e9 100644 --- a/src/eetcd_conn.erl +++ b/src/eetcd_conn.erl @@ -145,7 +145,7 @@ handle_event({call, From}, {?flush_token, Gun, Token}, _StateName, Data) -> {keep_state, NewData, [{reply, From, NewToken}]}; handle_event(info, {'DOWN', _GunRef, process, Gun, _Reason}, _StateName, Data) -> handle_conn_down(Data, Gun); -handle_event(info, {gun_down, Gun, http2, _Error, _KilledStreams, _UnprocessedStreams}, _StateName, Data) -> +handle_event(info, {gun_down, Gun, http2, _Error, _KilledStreams}, _StateName, Data) -> handle_conn_down(Data, Gun); handle_event(EventType, reconnecting, _StateName, Data) when EventType =:= internal orelse EventType =:= info ->