autopilot/pref_attachment: rename ConstrainedPrefAttachment->PrefAttachment

Since the ConstrainedPrefAttachment no longers require the heuristic to
be aware of the autopilot constraints, we rename it PrefAttachment.
This commit is contained in:
Johan T. Halseth committed 2019-01-08 10:10:59 +01:00
1 parent ccf4b7feab
commit 3739c19ef8
3 files changed
+33 -100

No files matched your search

+2 -5
View File
@@ -95,11 +95,8 @@ func initAutoPilot(svr *server, cfg *autoPilotConfig) *autopilot.ManagerCfg {
cfg.Allocation,
)
// First, we'll create the preferential attachment heuristic,
// initialized with the passed auto pilot configuration parameters.
prefAttachment := autopilot.NewConstrainedPrefAttachment(
atplConstraints,
)
// First, we'll create the preferential attachment heuristic.
prefAttachment := autopilot.NewPrefAttachment()
// With the heuristic itself created, we can now populate the remainder
// of the items that the autopilot agent needs to perform its duties.