Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

use correct monitor ref #1725

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/poc/grpc_client_stream_custom.erl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ handle_info(timeout, #{response_pending := true,
client := Client} = Stream) ->
gen_server:reply(Client, {error, timeout}),
{noreply, Stream#{response_pending => false}};
handle_info({'DOWN', Ref, process, _, _Reason}, #{conn_mon := Ref} = C) ->
handle_info({'DOWN', Ref, process, _, _Reason}, #{conn_monitor_ref := Ref} = C) ->
%% our connection is down, nothing more stream can do other then terminate
{stop, connection_down, C};
handle_info(Msg, #{handler_callback := HandlerCB} = Stream) ->
Expand Down