fix: apply suggestions from code review
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
parent
a9a7f4ae3a
commit
58db34ac62
|
@ -535,7 +535,7 @@ call_channel_health_check(ResId, ChannelId, Mod, ResourceState) ->
|
|||
?SAFE_CALL(Mod:on_get_channel_status(ResId, ChannelId, ResourceState)).
|
||||
|
||||
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
|
||||
true ->
|
||||
try
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
state,
|
||||
error,
|
||||
pid,
|
||||
extra,
|
||||
added_channels
|
||||
added_channels,
|
||||
extra
|
||||
}).
|
||||
-type data() :: #data{}.
|
||||
|
||||
|
|
Loading…
Reference in New Issue