Skip to content

Commit

Permalink
Revert "Fix service syncing churn (#5096)"
Browse files Browse the repository at this point in the history
This reverts commit ccd4176.
  • Loading branch information
banks authored Dec 20, 2018
1 parent ccd4176 commit 10821e4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1724,11 +1724,6 @@ func (a *Agent) AddService(service *structs.NodeService, chkTypes []*structs.Che
}
}

// Set default weights if not specified
if service.Weights == nil {
service.Weights = &structs.Weights{Passing: 1, Warning: 1}
}

// Warn if the service name is incompatible with DNS
if InvalidDnsRe.MatchString(service.Service) {
a.logger.Printf("[WARN] agent: Service name %q will not be discoverable "+
Expand Down

0 comments on commit 10821e4

Please sign in to comment.