From e34efc9112618c298ac40984f9203ad931e96fd8 Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Wed, 13 Dec 2023 12:13:19 +0100 Subject: [PATCH] refactor(inclusion_monitor): use non macro CI checks fail otherwise. Would be nice to fix. --- src/phoenix/inclusion_monitor.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/phoenix/inclusion_monitor.rs b/src/phoenix/inclusion_monitor.rs index a224230..de04f5c 100644 --- a/src/phoenix/inclusion_monitor.rs +++ b/src/phoenix/inclusion_monitor.rs @@ -119,8 +119,7 @@ pub async fn proposer_label_meta( pg_pool: &PgPool, proposer_pubkey: &str, ) -> anyhow::Result { - sqlx::query_as!( - ProposerLabelMeta, + sqlx::query_as::<_, ProposerLabelMeta>( " SELECT label, @@ -129,8 +128,8 @@ pub async fn proposer_label_meta( FROM validators WHERE pubkey = $1 ", - proposer_pubkey ) + .bind(proposer_pubkey) .fetch_optional(pg_pool) .await .map(|row| row.unwrap_or_default())