From f70da696f0e9b5b0f436950305f6c7a6eeacf99a Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Thu, 8 Aug 2019 22:33:40 +0800 Subject: [PATCH] Fix the badmatch error --- src/emqx_protocol.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emqx_protocol.erl b/src/emqx_protocol.erl index 15c3bf37c..c9bf3690b 100644 --- a/src/emqx_protocol.erl +++ b/src/emqx_protocol.erl @@ -314,10 +314,10 @@ handle_out({connack, ?RC_SUCCESS, SP}, ok = emqx_hooks:run('client.connected', [Client, ?RC_SUCCESS, attrs(PState)]), #{max_packet_size := MaxPktSize, max_qos_allowed := MaxQoS, - mqtt_retain_available := Retain, + retain_available := Retain, max_topic_alias := MaxAlias, - mqtt_shared_subscription := Shared, - mqtt_wildcard_subscription := Wildcard + shared_subscription := Shared, + wildcard_subscription := Wildcard } = caps(PState), %% Response-Information is so far not set by broker. %% i.e. It's a Client-to-Client contract for the request-response topic naming scheme.