Explorar o código

fix: slow_sub api return field's notice_interval is missing

zhongwencool %!s(int64=4) %!d(string=hai) anos
pai
achega
29ccc98a42

+ 2 - 2
apps/emqx_slow_subs/etc/emqx_slow_subs.conf

@@ -25,11 +25,11 @@ emqx_slow_subs {
     ## publish is disabled if set to 0s.
     ## publish is disabled if set to 0s.
     ##
     ##
     ## Value: 0s
     ## Value: 0s
-    expire_interval = 0s
+    notice_interval = 0s
 
 
     ## QoS of notification message
     ## QoS of notification message
     ##
     ##
-    ## Defaut: 0
+    ## Default: 0
     notice_qos = 0
     notice_qos = 0
 
 
     ## Maximum information number in one notification
     ## Maximum information number in one notification

+ 1 - 1
apps/emqx_slow_subs/src/emqx_slow_subs_schema.erl

@@ -33,7 +33,7 @@ fields("emqx_slow_subs") ->
           "QoS of notification message in notice topic")}
           "QoS of notification message in notice topic")}
     , {notice_batch_size,
     , {notice_batch_size,
        sc(integer(),
        sc(integer(),
-          0,
+          100,
           "Maximum information number in one notification")}
           "Maximum information number in one notification")}
     ].
     ].