Skip to content

Commit

Permalink
Remove setting cotonic-routing-id. Now in zotonic mqtt runtime module (
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzeeman authored Nov 11, 2024
1 parent 03b2c34 commit 056c2e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mqtt_sessions_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ handle_incoming(#{ type := subscribe } = Msg, _Options, State) ->
handle_incoming(#{ type := unsubscribe } = Msg, _Options, State) ->
packet_unsubscribe(Msg, State);

handle_incoming(#{ type := pingreq } = Msg, _Options, State) ->
handle_incoming(#{ type := pingreq }, _Options, State) ->
#state{ runtime = Runtime, user_context = UserContext } = State,
{ok, UserContext1} = Runtime:ping(UserContext),
State1 = reply_or_drop(#{ type => pingresp }, State#state{ user_context = UserContext1 }),
Expand Down Expand Up @@ -1024,8 +1024,7 @@ reply_connack(#{ type := connack, reason_code := ?MQTT_RC_SUCCESS } = ConnAck, S
server_keep_alive => State#state.keep_alive,
assigned_client_identifier => State#state.client_id,
subscription_identifier_available => false,
shared_subscription_available => false,
<<"cotonic-routing-id">> => State#state.routing_id
shared_subscription_available => false
}
},
reply_to_transport(ConnAck1, State);
Expand Down

0 comments on commit 056c2e0

Please sign in to comment.