mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-09 20:33:09 +00:00
Use unbounded MQTT client channel.
Even with the messages being handled async (tokio::spawn(...)), during high throughput or a burst of messages, the channel might still fill up causing messages to be discarded without any error being printed.
This commit is contained in:
parent
b6d390b6ad
commit
9ea174910f
@ -196,7 +196,7 @@ impl<'a> MqttBackend<'a> {
|
|||||||
let conn_opts = conn_opts_b.finalize();
|
let conn_opts = conn_opts_b.finalize();
|
||||||
|
|
||||||
// get message stream
|
// get message stream
|
||||||
let mut stream = client.get_stream(25);
|
let mut stream = client.get_stream(None);
|
||||||
|
|
||||||
let b = MqttBackend {
|
let b = MqttBackend {
|
||||||
client,
|
client,
|
||||||
|
@ -139,7 +139,7 @@ impl<'a> Integration<'a> {
|
|||||||
let conn_opts = conn_opts_b.finalize();
|
let conn_opts = conn_opts_b.finalize();
|
||||||
|
|
||||||
// get message stream
|
// get message stream
|
||||||
let mut stream = client.get_stream(25);
|
let mut stream = client.get_stream(None);
|
||||||
|
|
||||||
let i = Integration {
|
let i = Integration {
|
||||||
command_regex: Regex::new(&templates.render(
|
command_regex: Regex::new(&templates.render(
|
||||||
@ -505,7 +505,7 @@ pub mod test {
|
|||||||
let conn_opts = mqtt::ConnectOptionsBuilder::new()
|
let conn_opts = mqtt::ConnectOptionsBuilder::new()
|
||||||
.clean_session(true)
|
.clean_session(true)
|
||||||
.finalize();
|
.finalize();
|
||||||
let mut stream = client.get_stream(10);
|
let mut stream = client.get_stream(None);
|
||||||
client.connect(conn_opts).await.unwrap();
|
client.connect(conn_opts).await.unwrap();
|
||||||
|
|
||||||
client
|
client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user