feat: Cleaning up some unused code.

This commit is contained in:
2024-11-12 21:18:02 -05:00
parent 8067331ff8
commit fbbd65f7ae
3 changed files with 20 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ public struct MQTTConnectionManager: Sendable {
public var shutdown: () -> Void
public enum Event: Sendable {
case notStarted
case connected
case disconnected
case shuttingDown
@@ -65,9 +66,9 @@ public actor MQTTConnectionService: Service {
// continue to run and handle graceful shutdowns.
logger?.trace("Received connection event: \(event)")
}
manager.shutdown()
} onGracefulShutdown: {
self.logger?.trace("Received graceful shutdown.")
Task { await self.manager.shutdown() }
}
}
}