This is needed as StaticNodeUsage is created in each invocation of PVE::RS::ResourceScheduling::Static::score_nodes_to_start_service now.
Signed-off-by: Daniel Kral <[email protected]> Reviewed-by: Fiona Ebner <[email protected]> --- proxmox-resource-scheduling/src/pve_static.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-resource-scheduling/src/pve_static.rs b/proxmox-resource-scheduling/src/pve_static.rs index d39614cd..fc40cb5c 100644 --- a/proxmox-resource-scheduling/src/pve_static.rs +++ b/proxmox-resource-scheduling/src/pve_static.rs @@ -70,7 +70,7 @@ criteria_struct! { /// Returns a vector of (nodename, score) pairs. Scores are between 0.0 and 1.0 and a higher score /// is better. pub fn score_nodes_to_start_service( - nodes: &[&StaticNodeUsage], + nodes: &[StaticNodeUsage], service: &StaticServiceUsage, ) -> Result<Vec<(String, f64)>, Error> { let len = nodes.len(); -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
