Skip to content

Commit

Permalink
Configure QED client for monitor agent needs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Apr 10, 2019
1 parent 5a400d2 commit e3ca384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/agent_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func runAgentMonitor(cmd *cobra.Command, args []string) error {
log.SetLogger("monitor", agentConfig.Log)

notifier := gossip.NewSimpleNotifierFromConfig(conf.Notifier)
conf.Qed.AttemptToReviveEndpoints = true
conf.Qed.ReadPreference = client.Any
qed, err := client.NewHTTPClientFromConfig(conf.Qed)
if err != nil {
return err
Expand Down

0 comments on commit e3ca384

Please sign in to comment.