Skip to content

Commit

Permalink
Merge pull request #63 from belltoy/fix/gun-down
Browse files Browse the repository at this point in the history
Fix handle gun_down event
  • Loading branch information
zhongwencool authored Oct 22, 2024
2 parents 390bc76 + d41347a commit ba2b1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eetcd_conn.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit ba2b1df

Please sign in to comment.