mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-19 05:07:54 +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();
|
||||
|
||||
// get message stream
|
||||
let mut stream = client.get_stream(25);
|
||||
let mut stream = client.get_stream(None);
|
||||
|
||||
let b = MqttBackend {
|
||||
client,
|
||||
|
@ -139,7 +139,7 @@ impl<'a> Integration<'a> {
|
||||
let conn_opts = conn_opts_b.finalize();
|
||||
|
||||
// get message stream
|
||||
let mut stream = client.get_stream(25);
|
||||
let mut stream = client.get_stream(None);
|
||||
|
||||
let i = Integration {
|
||||
command_regex: Regex::new(&templates.render(
|
||||
@ -505,7 +505,7 @@ pub mod test {
|
||||
let conn_opts = mqtt::ConnectOptionsBuilder::new()
|
||||
.clean_session(true)
|
||||
.finalize();
|
||||
let mut stream = client.get_stream(10);
|
||||
let mut stream = client.get_stream(None);
|
||||
client.connect(conn_opts).await.unwrap();
|
||||
|
||||
client
|
||||
|
Loading…
Reference in New Issue
Block a user