From 61da50dba7d5ab7117103a868baf7651940dd132 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 6 May 2024 18:22:40 -0400 Subject: [PATCH] update indexer-selection --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- graph-gateway/src/client_query.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e5a4a302..6feb38e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -614,7 +614,7 @@ dependencies = [ [[package]] name = "candidate-selection" version = "0.1.0" -source = "git+https://github.com/edgeandnode/candidate-selection?rev=982afe8#982afe85043085f056a0a01f05491b517a9ebc75" +source = "git+https://github.com/edgeandnode/candidate-selection?rev=9313194#931319456aff79ba9cdefd490367d243169a23ee" dependencies = [ "arrayvec 0.7.4", "ordered-float", @@ -2451,7 +2451,7 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexer-selection" version = "0.1.0" -source = "git+https://github.com/edgeandnode/candidate-selection?rev=982afe8#982afe85043085f056a0a01f05491b517a9ebc75" +source = "git+https://github.com/edgeandnode/candidate-selection?rev=9313194#931319456aff79ba9cdefd490367d243169a23ee" dependencies = [ "candidate-selection", "custom_debug", diff --git a/Cargo.toml b/Cargo.toml index def7aa04..521cf49b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,13 +18,13 @@ axum = { version = "0.7.5", default-features = false, features = [ "tokio", "original-uri", ] } -candidate-selection = { git = "https://github.com/edgeandnode/candidate-selection", rev = "982afe8" } +candidate-selection = { git = "https://github.com/edgeandnode/candidate-selection", rev = "9313194" } cost-model = { git = "https://github.com/graphprotocol/agora", rev = "3ed34ca" } futures = "0.3" graphql = { git = "https://github.com/edgeandnode/toolshed", tag = "graphql-v0.3.0", default-features = false } headers = "0.4.0" hex = "0.4" -indexer-selection = { git = "https://github.com/edgeandnode/candidate-selection", rev = "982afe8" } +indexer-selection = { git = "https://github.com/edgeandnode/candidate-selection", rev = "9313194" } primitive-types = "0.12.2" rand = { version = "0.8", features = ["small_rng"] } receipts = { git = "https://github.com/edgeandnode/receipts", rev = "b12e197" } diff --git a/graph-gateway/src/client_query.rs b/graph-gateway/src/client_query.rs index f749126e..df03d403 100644 --- a/graph-gateway/src/client_query.rs +++ b/graph-gateway/src/client_query.rs @@ -582,7 +582,7 @@ fn prepare_candidate( fee, seconds_behind: perf.seconds_behind, slashable_grt: (info.staked_tokens as f64 * 1e-18) as u64, - subgraph_versions_behind: *versions_behind.get(&indexing.deployment).unwrap_or(&0), + versions_behind: *versions_behind.get(&indexing.deployment).unwrap_or(&0), zero_allocation: info.allocated_tokens == 0, }) }