live stock update
This commit is contained in:
6
main.go
6
main.go
@@ -118,6 +118,12 @@ func main() {
|
||||
// would be a cycle — so they hold an interface and this supplies it. Left
|
||||
// unset the notification is simply skipped, which is what happens when the
|
||||
// broker is unavailable and must not stop the API booting.
|
||||
// The console's live stream listens to the same broker, read-only, and on
|
||||
// EVERY replica — unlike the ingest consumer below, which is elected. A
|
||||
// console connected to a non-elected replica must still see its tills.
|
||||
// Never fatal: no broker simply means the console keeps polling.
|
||||
messaging.StartLiveHub()
|
||||
|
||||
posMqtt, err := messaging.StartPosMqttConsumer(f.PosService())
|
||||
if err != nil {
|
||||
log.Fatal("POS MQTT consumer failed to start:", err)
|
||||
|
||||
Reference in New Issue
Block a user