From 10821e4ff4996908315c49975ab6aa31850513ae Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Thu, 20 Dec 2018 12:51:54 +0000 Subject: [PATCH] Revert "Fix service syncing churn (#5096)" This reverts commit ccd417683f88d83fdcf681430a72b8c05914758d. --- agent/agent.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index e370a574d27f..1c5cf1038255 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -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 "+