From a2f04d3e3c8a1c75bc24d1d58fac0481ce854a22 Mon Sep 17 00:00:00 2001 From: denisonbarbosa Date: Mon, 24 Jul 2023 11:51:03 -0400 Subject: [PATCH] Set cmd/auth/main.go to run the examplebroker bus --- cmd/authd/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/authd/main.go b/cmd/authd/main.go index 6218fb60c..8bc455c4a 100644 --- a/cmd/authd/main.go +++ b/cmd/authd/main.go @@ -9,6 +9,7 @@ import ( "syscall" "github.com/ubuntu/authd/cmd/authd/daemon" + "github.com/ubuntu/authd/internal/brokers/examplebroker" "github.com/ubuntu/authd/internal/log" ) @@ -18,6 +19,13 @@ import ( func main() { //i18n.InitI18nDomain(common.TEXTDOMAIN) + go func() { + err := examplebroker.StartBus() + if err != nil { + log.Error(context.Background(), err) + os.Exit(1) + } + }() a := daemon.New() os.Exit(run(a)) }