Skip to content

Commit

Permalink
[mesh] add consul empty checker
Browse files Browse the repository at this point in the history
  • Loading branch information
benja-wu authored and xxx7xxxx committed Sep 24, 2021
1 parent fd4dc88 commit e3cc486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/object/meshcontroller/registrycenter/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (rcs *Server) ToConsulHealthService(serviceInfo *ServiceRegistryInfo) []*ap
Address: serviceInfo.Ins.IP,
Service: serviceInfo.Ins.ServiceName,
}
svc.Checks = make(api.HealthChecks, 0)
svcs = append(svcs, &svc)
return svcs
}
Expand Down

0 comments on commit e3cc486

Please sign in to comment.