fix: apply suggestions from code review

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
Kjell Winblad 2023-10-12 09:36:43 +02:00 committed by Zaiming (Stone) Shi
parent a9a7f4ae3a
commit 58db34ac62
2 changed files with 3 additions and 3 deletions

View File

@ -535,7 +535,7 @@ call_channel_health_check(ResId, ChannelId, Mod, ResourceState) ->
?SAFE_CALL(Mod:on_get_channel_status(ResId, ChannelId, ResourceState)). ?SAFE_CALL(Mod:on_get_channel_status(ResId, ChannelId, ResourceState)).
call_add_channel(ResId, Mod, ResourceState, ChannelId, ChannelConfig) -> call_add_channel(ResId, Mod, ResourceState, ChannelId, ChannelConfig) ->
%% Check if maybe_install_insert_template is exported %% Check if on_add_channel is exported
case erlang:function_exported(Mod, on_add_channel, 4) of case erlang:function_exported(Mod, on_add_channel, 4) of
true -> true ->
try try

View File

@ -69,8 +69,8 @@
state, state,
error, error,
pid, pid,
extra, added_channels,
added_channels extra
}). }).
-type data() :: #data{}. -type data() :: #data{}.