fix(emqx_connector_mqtt_worker): publish_async can only return ok # Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
c0d478bd41
commit
1c748070c1
|
@ -257,12 +257,8 @@ send_to_remote_async(Name, MsgIn, Callback) ->
|
|||
|
||||
do_send_async(Name, {true, Msg}, Callback) ->
|
||||
Pid = get_pid(Name),
|
||||
case emqtt:publish_async(Pid, Msg, _Timeout = infinity, Callback) of
|
||||
ok ->
|
||||
{ok, Pid};
|
||||
{error, _} = Error ->
|
||||
Error
|
||||
end;
|
||||
ok = emqtt:publish_async(Pid, Msg, _Timeout = infinity, Callback),
|
||||
{ok, Pid};
|
||||
do_send_async(_Name, false, _Callback) ->
|
||||
ok.
|
||||
|
||||
|
|
Loading…
Reference in New Issue