[pve-devel] [PATCH proxmox 1/1] resource-scheduling: change score_nodes_to_start_service signature

Daniel Kral d.kral at proxmox.com
Tue Sep 30 16:19:09 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>
---
Since it has only one callee, I haven't bothered to make this take
either a borrow or a reference..

 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