[pve-devel] [PATCH proxmox v2 1/1] resource-scheduling: change score_nodes_to_start_service signature
    Daniel Kral 
    d.kral at proxmox.com
       
    Mon Oct 20 18:45:28 CEST 2025
    
    
  
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 <d.kral at proxmox.com>
---
changes since v1:
 - none
 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
    
    
More information about the pve-devel
mailing list