Skip to content

Commit

Permalink
Set cmd/auth/main.go to run the examplebroker bus
Browse files Browse the repository at this point in the history
  • Loading branch information
denisonbarbosa committed Aug 1, 2023
1 parent 7ca5e7f commit 7ec8e46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/authd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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))
}
Expand Down

0 comments on commit 7ec8e46

Please sign in to comment.