Merge pull request #10305 from zmstone/0331-docs-fix-bridge-batch-size-desc

docs: fix max batch size desc
This commit is contained in:
Zaiming (Stone) Shi 2023-03-31 15:49:39 +02:00 committed by GitHub
commit 36240d310c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 8 deletions

View File

@ -154,7 +154,12 @@ t_session_taken(_) ->
{clean_start, false}, {clean_start, false},
{properties, #{'Session-Expiry-Interval' => 120}} {properties, #{'Session-Expiry-Interval' => 120}}
]), ]),
{ok, _} = emqtt:connect(C), case emqtt:connect(C) of
{ok, _} ->
ok;
{error, econnrefused} ->
throw(mqtt_listener_not_ready)
end,
{ok, _, [0]} = emqtt:subscribe(C, Topic, []), {ok, _, [0]} = emqtt:subscribe(C, Topic, []),
C C
end, end,
@ -168,9 +173,21 @@ t_session_taken(_) ->
lists:seq(1, MsgNum) lists:seq(1, MsgNum)
) )
end, end,
emqx_common_test_helpers:wait_for(
C1 = Connect(), ?FUNCTION_NAME,
ok = emqtt:disconnect(C1), ?LINE,
fun() ->
try
C = Connect(),
emqtt:disconnect(C),
true
catch
throw:mqtt_listener_not_ready ->
false
end
end,
3000
),
Publish(), Publish(),

View File

@ -149,11 +149,11 @@ When disabled the messages are buffered in RAM only."""
batch_size { batch_size {
desc { desc {
en: """Maximum batch count. If equal to 1, there's effectively no batching.""" en: """Maximum batch count. If equal to 1, there's effectively no batching."""
zh: """批量请求大小。如果设为1则无批处理。""" zh: """最大批量请求大小。如果设为1则无批处理。"""
} }
label { label {
en: """Batch size""" en: """Max batch size"""
zh: """批量请求大小""" zh: """最大批量请求大小"""
} }
} }
@ -163,7 +163,7 @@ When disabled the messages are buffered in RAM only."""
zh: """在较低消息率情况下尝试累积批量输出时的最大等待间隔,以提高资源的利用率。""" zh: """在较低消息率情况下尝试累积批量输出时的最大等待间隔,以提高资源的利用率。"""
} }
label { label {
en: """Max Batch Wait Time""" en: """Max batch wait time"""
zh: """批量等待最大间隔""" zh: """批量等待最大间隔"""
} }
} }