Skip to content

Commit

Permalink
chore: add changelog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Aug 25, 2022
1 parent 8c08b48 commit 546dcd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 1.7.0

## Enhancements

* Added `publish_async` APIs to support asynchronous publishing. [#165](https://github.com/emqx/emqtt/pull/165)
Note that an incompatible update has been included, where the return format
of the `publish` function has been changed to `ok | {ok, publish_reply()} | {error, Reason}`

## Bug fixes

* Fixed inflight message retry after reconnect [#166](https://github.com/emqx/emqtt/pull/166)
2 changes: 1 addition & 1 deletion src/emqtt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ mqtt_connect(State = #state{clientid = ClientId,
username = Username,
password = Password}), State).

reconnect(state_timeout, NextTimeout, #state{conn_mod = CMod} = State) ->
reconnect(state_timeout, NextTimeout, #state{conn_mod = CMod} = State) ->
case do_connect(CMod, State#state{clean_start = false}) of
{ok, #state{connect_timeout = Timeout} = NewState} ->
{next_state, waiting_for_connack, NewState, [Timeout]};
Expand Down

0 comments on commit 546dcd7

Please sign in to comment.