Commit e871cdff authored by Rocky Automation's avatar Rocky Automation 📺
Browse files

import rhc-0.2.0-3.el8

parent 3aa773ad
From 7c742868fbcb0f7fbd2d9d1e02991bbb01e2d763 Mon Sep 17 00:00:00 2001
From: Link Dupont <link@sub-pop.net>
Date: Fri, 24 Sep 2021 15:12:45 -0400
Subject: [PATCH] fix: report active dispatchers when connecting to broker
Include the current dispatchers map when publishing connection status during the reconnect handler instead of always publishing an empty map.
Fixes RHBZ#2007667
Signed-off-by: Link Dupont <link@sub-pop.net>
---
cmd/yggd/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/yggd/main.go b/cmd/yggd/main.go
index 5f0a931..4999f98 100644
--- a/cmd/yggd/main.go
+++ b/cmd/yggd/main.go
@@ -238,7 +238,7 @@ func main() {
})
log.Tracef("subscribed to topic: %v", topic)
- go publishConnectionStatus(client, map[string]map[string]string{})
+ go publishConnectionStatus(client, d.makeDispatchersMap())
})
mqttClientOpts.SetDefaultPublishHandler(func(c mqtt.Client, m mqtt.Message) {
log.Errorf("unhandled message: %v", string(m.Payload()))
--
2.31.1
......@@ -2,7 +2,7 @@
Name: rhc
Version: 0.2.0
Release: 1%{?dist}
Release: 3%{?dist}
Epoch: 1
Summary: Message dispatch agent for cloud-connected systems
License: GPLv3
......@@ -14,6 +14,7 @@ Source1: config.toml
# Fixed upstream
Patch0: 0001-fix-Improve-output-during-disconnect.patch
Patch1: 0002-feat-Include-Description-in-help-output.patch
Patch2: 0003-fix-report-active-dispatchers-when-connecting-to-bro.patch
ExclusiveArch: %{go_arches}
......@@ -75,10 +76,18 @@ make PREFIX=%{_prefix} \
%changelog
* Mon Aug 23 2021 Link Dupont <link@redhat.com> - 0.2.0-1
* Fri Sep 24 2021 Link Dupont <link@redhat.com> - 0.2.0-3
- Fix an issue reporting workers on reconnect (Resolves: RHBZ#2007667)
* Thu Jul 1 2021 Link Dupont <link@redhat.com> - 0.2.0-2
- Add two patches that fix some UX issues
* Mon Jun 28 2021 Link Dupont <link@redhat.com> - 0.2.0-1
- New upstream release
- Mark config file as a noreplace config file
- Add two patches that fix some UX issues
* Wed Apr 28 2021 Link Dupont <link@redhat.com> - 0.1.4-2
- Rebuild for fixed binutils on aarch64 (Resolves: RHBZ#1954449)
* Fri Apr 9 2021 Link Dupont <link@redhat.com> - 0.1.4-1
- New upstream release
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment