Blame SOURCES/0003-fix-report-active-dispatchers-when-connecting-to-bro.patch
|
|
c57bbd |
From 7c742868fbcb0f7fbd2d9d1e02991bbb01e2d763 Mon Sep 17 00:00:00 2001
|
|
|
c57bbd |
From: Link Dupont <link@sub-pop.net>
|
|
|
c57bbd |
Date: Fri, 24 Sep 2021 15:12:45 -0400
|
|
|
c57bbd |
Subject: [PATCH] fix: report active dispatchers when connecting to broker
|
|
|
c57bbd |
|
|
|
c57bbd |
Include the current dispatchers map when publishing connection status during the reconnect handler instead of always publishing an empty map.
|
|
|
c57bbd |
|
|
|
c57bbd |
Fixes RHBZ#2007667
|
|
|
c57bbd |
|
|
|
c57bbd |
Signed-off-by: Link Dupont <link@sub-pop.net>
|
|
|
c57bbd |
---
|
|
|
c57bbd |
cmd/yggd/main.go | 2 +-
|
|
|
c57bbd |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
c57bbd |
|
|
|
c57bbd |
diff --git a/cmd/yggd/main.go b/cmd/yggd/main.go
|
|
|
c57bbd |
index 5f0a931..4999f98 100644
|
|
|
c57bbd |
--- a/cmd/yggd/main.go
|
|
|
c57bbd |
+++ b/cmd/yggd/main.go
|
|
|
c57bbd |
@@ -238,7 +238,7 @@ func main() {
|
|
|
c57bbd |
})
|
|
|
c57bbd |
log.Tracef("subscribed to topic: %v", topic)
|
|
|
c57bbd |
|
|
|
c57bbd |
- go publishConnectionStatus(client, map[string]map[string]string{})
|
|
|
c57bbd |
+ go publishConnectionStatus(client, d.makeDispatchersMap())
|
|
|
c57bbd |
})
|
|
|
c57bbd |
mqttClientOpts.SetDefaultPublishHandler(func(c mqtt.Client, m mqtt.Message) {
|
|
|
c57bbd |
log.Errorf("unhandled message: %v", string(m.Payload()))
|
|
|
c57bbd |
--
|
|
|
c57bbd |
2.31.1
|
|
|
c57bbd |
|