mirror of
https://github.com/meshtastic/mqtt.git
synced 2026-07-29 04:53:07 +02:00
Ideas
This commit is contained in:
@@ -23,7 +23,6 @@ async Task RunMqttServer(string[] args)
|
||||
// .WriteTo.File(new RenderedCompactJsonFormatter(), "log.json", rollingInterval: RollingInterval.Hour)
|
||||
.CreateLogger();
|
||||
|
||||
// Create and configure MQTT server
|
||||
using var mqttServer = new MqttServerFactory()
|
||||
.CreateMqttServer(BuildMqttServerOptions());
|
||||
ConfigureMqttServer(mqttServer);
|
||||
@@ -33,7 +32,6 @@ async Task RunMqttServer(string[] args)
|
||||
await host.StartAsync();
|
||||
var lifetime = host.Services.GetRequiredService<IHostApplicationLifetime>();
|
||||
|
||||
// Start MQTT server
|
||||
await mqttServer.StartAsync();
|
||||
|
||||
// Configure graceful shutdown
|
||||
|
||||
Reference in New Issue
Block a user